From 197252e9f068341fd1e6b05e63958900425faa88 Mon Sep 17 00:00:00 2001 From: Cristian Camargo Date: Tue, 2 Apr 2019 20:11:22 +0000 Subject: [PATCH] Add new file --- apigee/medicamentos-utilidades.json | 364 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 364 insertions(+) create mode 100644 apigee/medicamentos-utilidades.json diff --git a/apigee/medicamentos-utilidades.json b/apigee/medicamentos-utilidades.json new file mode 100644 index 0000000..81caa26 --- /dev/null +++ b/apigee/medicamentos-utilidades.json @@ -0,0 +1,364 @@ +{ + "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 servicios de medicamentos utilidades.", + "version": "1.0.0", + "title": "Utilidades Medicamentos", + "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-utilidades", + "description": "Servicios varios relacionados con medicamentos." + } + ], + "paths": { + "/v1/medicamentos/utilidades/notificaciones": { + "post": { + "tags": [ + "cols-medicamentos-utilidades" + ], + "summary": "Servicio para envio notificaciones push y SMS.", + "description": "Servicio para el envio de notificaciones push y SMS al cliente.", + "operationId": "notificacionMedicamento", + "responses": { + "200": { + "description": "Operación exitosa", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/notificacionMedicamentoResponse" + } + } + } + }, + "400": { + "description": "Estado inválido" + } + }, + "security": [ + { + "apigee_auth": [ + "write:apigee", + "read:apigee" + ] + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/notificacionMedicamentoRequestBody" + } + } + }, + "/v1/medicamentos/utilidades/horarios": { + "get": { + "tags": [ + "cols-medicamentos-utilidades" + ], + "summary": "Obtener de horarios", + "description": "Obtener informacion de los horarios.", + "operationId": "horarioMedicamento", + "responses": { + "200": { + "description": "Operación exitosa", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/horarioMedicamentoResponse" + } + } + } + }, + "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" + } + }, + "resultadoNotificacion": { + "type": "object", + "properties": { + "codigo": { + "type": "string", + "description": "Código del resultado" + }, + "descripcion": { + "type": "string", + "description": "Descripción del resultado" + }, + "mensaje": { + "type": "string", + "description": "Mensaje de la notificacion." + } + }, + "xml": { + "name": "resultado" + } + }, + + "estadoNotificacion": { + "type": "object", + "properties": { + "descripcion": { + "type": "string", + "description": "Descripcion del estado." + } + }, + "xml": { + "name": "estadoNotificacion" + } + }, + "externoNotificacion": { + "type": "object", + "properties": { + "documento": { + "$ref": "#/components/schemas/documentoNotificacion" + } + }, + "xml": { + "name": "usuarioNotificacion" + } + }, + "notificacionMedicamentoRequest": { + "type": "object", + "properties": { + "notificacion": { + "$ref": "#/components/schemas/notificacionNotificacion" + } + }, + "xml": { + "name": "notificacionMedicamentoRequest" + } + }, + "notificacionNotificacion": { + "type": "object", + "properties": { + "pedido": { + "$ref": "#/components/schemas/pedidoNotificacion" + }, + "usuario": { + "$ref": "#/components/schemas/usuarioNotificacion" + }, + "externo": { + "$ref": "#/components/schemas/externoNotificacion" + }, + "estado": { + "$ref": "#/components/schemas/estadoNotificacion" + } + }, + "xml": { + "name": "notificacionNotificacion" + } + }, + "usuarioNotificacion": { + "type": "object", + "properties": { + "documento": { + "$ref": "#/components/schemas/documentoNotificacion" + }, + "telefono": { + "type": "string", + "description": "Telefono del usuario." + } + }, + "xml": { + "name": "usuarioNotificacion" + } + }, + "pedidoNotificacion": { + "type": "object", + "properties": { + "id": { + "type": "number", + "description": "Numero de identificacion del pedido." + } + }, + "xml": { + "name": "pedidoNotificacion" + } + }, + "documentoNotificacion": { + "type": "object", + "properties": { + "tipo": { + "type": "string", + "description": "Tipo de documento." + }, + "numero": { + "type": "number", + "description": "Número de identificación del documento." + } + }, + "xml": { + "name": "documentoNotificacion" + } + }, + "horario": { + "type": "object", + "properties": { + "id": { + "type": "number", + "description": "Numero de identificacion del horario." + }, + "rango": { + "type": "string", + "description": "Rango del horario." + } + }, + "xml": { + "name": "horario" + } + }, + "respuestaNotificacion": { + "type": "object", + "properties": { + "pedido": { + "$ref": "#/components/schemas/pedidoNotificacion" + }, + "usuario": { + "$ref": "#/components/schemas/usuarioNotificacion" + } + }, + "xml": { + "name": "respuestaNotificacion" + } + }, + "obtenerHorario": { + "type": "object", + "properties": { + "horario": { + "type": "array", + "items":{ + "$ref": "#/components/schemas/horario" + } + } + }, + "xml": { + "name": "obtenerHorario" + } + }, + + "horarioMedicamentoResponse": { + "type": "object", + "required": [ + "resultado" + ], + "properties": { + "resultado": { + "type": "array", + "xml": { + "name": "resultado" + }, + "items": { + "$ref": "#/components/schemas/resultado" + } + }, + "obtenerHorario": { + "type": "array", + "items": { + "$ref": "#/components/schemas/obtenerHorario" + } + } + } + }, + "notificacionMedicamentoResponse": { + "type": "object", + "required": [ + "resultado" + ], + "properties": { + "resultado": { + "type": "array", + "xml": { + "name": "resultado" + }, + "items": { + "$ref": "#/components/schemas/resultadoNotificacion" + } + }, + "respuestaNotificacion": { + "type": "array", + "items": { + "$ref": "#/components/schemas/respuestaNotificacion" + } + } + } + } + }, + "requestBodies": { + "notificacionMedicamentoRequestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/notificacionMedicamentoRequest" + } + } + }, + "description": "Información de la fórmula médica", + "required": true + } + }, + "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