Commit d7da0a25 by Edwin Ferreira

Add new file

parent f63ca02e
{
"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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment