From d7da0a2540384b567b869f9656d0a509a95061a8 Mon Sep 17 00:00:00 2001 From: Edwin Ferreira Date: Thu, 7 Mar 2019 14:08:12 +0000 Subject: [PATCH] Add new file --- apigee/credito-tarjeta.json | 205 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 205 insertions(+) create mode 100644 apigee/credito-tarjeta.json diff --git a/apigee/credito-tarjeta.json b/apigee/credito-tarjeta.json new file mode 100644 index 0000000..c279331 --- /dev/null +++ b/apigee/credito-tarjeta.json @@ -0,0 +1,205 @@ +{ + "openapi": "3.0.0", + "servers": [ + { + "description": "Calidad", + "url": "https://colsubsidio-test.apigee.net/api" + }, + { + "description": "Producción", + "url": "https://colsubsidio-prod.apigee.net/api" + } + ], + "info": { + "description": "Información de los servicios del producto credito.", + "version": "1.0.0", + "title": "Credito tarjeta", + "termsOfService": "http://172.16.95.36/wiki/index.php/T%C3%A9rminos_de_servicio_Swagger", + "contact": { + "email": "operacionesti@colsubsidio.com" + }, + "license": { + "name": "Colsubsidio", + "url": "http://172.16.95.36/wiki/index.php/T%C3%A9rminos_de_servicio_Swagger" + } + }, + "tags": [ + { + "name": "cols-credito-bolsillo", + "description": "Consulta tarjeta" + } + ], + "paths": { + "/v2/credito/bolsillos": { + "get": { + "tags": [ + "cols-credito-bolsillo" + ], + "summary": "Consulta saldo disponible", + "description": "Obtener informacion del saldo disponible", + "operationId": "getConsultaBolsillo", + "parameters": [ + { + "name": "tipoId", + "in": "query", + "description": "Tipo de identificacion.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "numId", + "in": "query", + "description": "Número de documento de identificación.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "codBolsillo", + "in": "query", + "description": "Codigo de bolsillo.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Operación exitosa", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/getConsultaBolsilloResponse" + } + } + } + }, + "400": { + "description": "Estado inválido" + } + }, + "security": [ + { + "apigee_auth": [ + "write:apigee", + "read:apigee" + ] + } + ] + } + } + }, + "externalDocs": { + "description": "Encontrar más información en EnterpriseArchitect", + "url": "http://172.16.95.36/wiki/index.php/Enterprise_Architect" + }, + "components": { + "schemas": { + "resultado": { + "type": "object", + "properties": { + "codigo": { + "type": "string", + "description": "Código del resultado" + }, + "descripcion": { + "type": "string", + "description": "Descripción del resultado" + } + }, + "xml": { + "name": "resultado" + } + }, + "tarjeta": { + "type": "object", + "properties": { + "tipo": { + "type": "number", + "description": "Tipo de tarjeta" + }, + "numero": { + "type": "number", + "description": "Numero de tarjeta" + }, + "activacion": { + "type": "string", + "description": "Fecha de activacion de tarjeta" + }, + "descripcion": { + "type": "string", + "description": "Descripcion del tipo de tarjeta" + } + }, + "xml": { + "name": "tarjeta" + } + }, + "consultaBolsillo": { + "type": "object", + "properties": { + "tarjeta": { + "$ref": "#/components/schemas/tarjeta" + }, + "fecha": { + "type": "string", + "description": "Fecha actual" + }, + "saldo": { + "type": "string", + "description": "Saldo disponible" + }, + "codigo": { + "type": "string", + "description": "Codigo de bolsillo" + } + }, + "xml": { + "name": "consultaBolsillo" + } + }, + "getConsultaBolsilloResponse": { + "type": "object", + "required": [ + "resultado" + ], + "properties": { + "resultado": { + "type": "array", + "xml": { + "name": "resultado" + }, + "items": { + "$ref": "#/components/schemas/resultado" + } + }, + "consultaBolsillo": { + "type": "array", + "items": { + "$ref": "#/components/schemas/consultaBolsillo" + } + } + } + } + }, + "requestBodies": {}, + "securitySchemes": { + "apigee_auth": { + "type": "oauth2", + "flows": { + "clientCredentials": { + "tokenUrl": "https://colsubsidio-test.apigee.net/oauth/client_credential/accesstoken?grant_type=client_credentials", + "scopes": { + "write:apigee": "Permisos de escritura", + "read:apigee": "Permisos de lectura" + } + } + } + } + } + } +} \ No newline at end of file -- libgit2 0.26.0