Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swagger
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
external
swagger
Commits
67fdeae8
Commit
67fdeae8
authored
Mar 27, 2019
by
Cristian_Camargo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
824e796b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
341 additions
and
0 deletions
+341
-0
medicamentos-localizacion.json
apigee/medicamentos-localizacion.json
+341
-0
No files found.
apigee/medicamentos-localizacion.json
0 → 100644
View file @
67fdeae8
{
"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"
:
"Informacion de los productos medicamentos y su localizacion."
,
"version"
:
"1.0.0"
,
"title"
:
"Medicamentos Localizacion"
,
"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-medicamentos-localizacion"
,
"description"
:
"Listado de departamentos y ciudades."
}
],
"paths"
:
{
"/v1/medicamentos/localizacion/departamentos"
:
{
"get"
:
{
"tags"
:
[
"cols-medicamentos-localizacion"
],
"summary"
:
"Obtener departamentos"
,
"description"
:
"Obtener departamentos de medicamentos."
,
"operationId"
:
"obtenerDepartamento"
,
"responses"
:
{
"200"
:
{
"description"
:
"Operación exitosa"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/obtenerDepartamentoResponse"
}
}
}
},
"400"
:
{
"description"
:
"Estado inválido"
}
},
"security"
:
[
{
"apigee_auth"
:
[
"write:apigee"
,
"read:apigee"
]
}
]
}
},
"/v1/medicamentos/localizacion/ciudades/departamento"
:
{
"get"
:
{
"tags"
:
[
"cols-medicamentos-localizacion"
],
"summary"
:
"Obtener ciudades por departamentos."
,
"description"
:
"Obtener ciudades por departamento de medicamentos."
,
"operationId"
:
"obtenerCiudadPorDepartamento"
,
"parameters"
:
[
{
"name"
:
"depId"
,
"in"
:
"query"
,
"description"
:
"Numero de identificacion del departamento."
,
"required"
:
true
,
"schema"
:
{
"type"
:
"string"
}
}
],
"responses"
:
{
"200"
:
{
"description"
:
"Operación exitosa"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/ciudadesPorDepartamentoResponse"
}
}
}
},
"400"
:
{
"description"
:
"Estado inválido"
}
},
"security"
:
[
{
"apigee_auth"
:
[
"write:apigee"
,
"read:apigee"
]
}
]
}
},
"/v1/medicamentos/localizacion/ciudades"
:
{
"get"
:
{
"tags"
:
[
"cols-medicamentos-localizacion"
],
"summary"
:
"Obtener ciudades y departamentos."
,
"description"
:
"Obtener ciudades de medicamentos."
,
"operationId"
:
"obtenerCiudad"
,
"responses"
:
{
"200"
:
{
"description"
:
"Operación exitosa"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"$ref"
:
"#/components/schemas/obtenerCiudadResponse"
}
}
}
},
"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"
}
},
"departamentoArray"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/departamento"
},
"xml"
:
{
"name"
:
"departamentoArray"
}
},
"ciudadArray"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/ciudad"
},
"xml"
:
{
"name"
:
"ciudadArray"
}
},
"ciudad"
:
{
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"string"
,
"description"
:
"Numero de identificacion de la ciudad."
},
"nombre"
:
{
"type"
:
"string"
,
"description"
:
"Nombre de la ciudad."
}
},
"xml"
:
{
"name"
:
"ciudad"
}
},
"departamento"
:
{
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"string"
,
"description"
:
"Numero de identificacion del departamento."
},
"nombre"
:
{
"type"
:
"string"
,
"description"
:
"Nombre del departamento"
}
},
"xml"
:
{
"name"
:
"departamento"
}
},
"obtenerDepartamento"
:
{
"type"
:
"object"
,
"properties"
:
{
"departamento"
:
{
"$ref"
:
"#/components/schemas/departamentoArray"
}
},
"xml"
:
{
"name"
:
"departamento"
}
},
"ciudadesPorDepartamento"
:
{
"type"
:
"object"
,
"properties"
:
{
"departamento"
:
{
"$ref"
:
"#/components/schemas/departamento"
},
"ciudad"
:
{
"$ref"
:
"#/components/schemas/ciudadArray"
}
},
"xml"
:
{
"name"
:
"ciudadesPorDepartamento"
}
},
"obtenerCiudad"
:
{
"type"
:
"object"
,
"properties"
:
{
"departamento"
:
{
"$ref"
:
"#/components/schemas/departamento"
},
"ciudad"
:
{
"$ref"
:
"#/components/schemas/ciudad"
}
},
"xml"
:
{
"name"
:
"obtenerCiudad"
}
},
"obtenerCiudadResponse"
:
{
"type"
:
"object"
,
"required"
:
[
"resultado"
],
"properties"
:
{
"resultado"
:
{
"type"
:
"array"
,
"xml"
:
{
"name"
:
"resultado"
},
"items"
:
{
"$ref"
:
"#/components/schemas/resultado"
}
},
"obtenerCiudad"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/obtenerCiudad"
}
}
}
},
"ciudadesPorDepartamentoResponse"
:
{
"type"
:
"object"
,
"required"
:
[
"resultado"
],
"properties"
:
{
"resultado"
:
{
"type"
:
"array"
,
"xml"
:
{
"name"
:
"resultado"
},
"items"
:
{
"$ref"
:
"#/components/schemas/resultado"
}
},
"ciudadesPorDepartamento"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/ciudadesPorDepartamento"
}
}
}
},
"obtenerDepartamentoResponse"
:
{
"type"
:
"object"
,
"required"
:
[
"resultado"
],
"properties"
:
{
"resultado"
:
{
"type"
:
"array"
,
"xml"
:
{
"name"
:
"resultado"
},
"items"
:
{
"$ref"
:
"#/components/schemas/resultado"
}
},
"obtenerDepartamento"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/obtenerDepartamento"
}
}
}
}
},
"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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment