Se agrega el servicio registrarMembresia

parent 043cd3d6
......@@ -34,7 +34,7 @@
}
],
"paths": {
"/api/v1/recreacionyturismo/hoteles/gestionclientes/membresias":{
"/v1/recreacionyturismo/hoteles/gestionclientes/membresias":{
"put": {
"tags": [
"cols-recreacionyturismo-gestionclientes"
......@@ -68,9 +68,41 @@
"requestBody": {
"$ref": "#/components/requestBodies/actualizarMembresiaRequestBody"
}
}
},
"/v1/recreacionyturismo/hoteles/gestionclientes/membresias": {
},
"post": {
"tags": [
"cols-recreacionyturismo-gestionclientes"
],
"summary": "Registrar membresía",
"description": "Registrar la membresía de un cliente",
"operationId": "regitrarMembresia.v1",
"responses": {
"200": {
"description": "Operación exitosa",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/registrarMembresiaResponse"
}
}
}
},
"400": {
"description": "Solicitud inválida"
}
},
"security": [
{
"apigee_auth": [
"write:apigee",
"read:apigee"
]
}
],
"requestBody": {
"$ref": "#/components/requestBodies/registrarMembresiaRequestBody"
}
},
"get": {
"tags": [
"cols-recreacionyturismo-gestionclientes"
......@@ -85,7 +117,7 @@
"required": true,
"description": "Numero de identificacion del cliente.",
"schema": {
"type": "number",
"type": "number"
}
}
],
......@@ -522,7 +554,7 @@
"required": true,
"description": "Numero de documento de identificacion de la persona que se consulta el turno.",
"schema": {
"type": "string",
"type": "string"
}
},
{
......@@ -531,7 +563,7 @@
"required": true,
"description": "cancelable.",
"schema": {
"type": "boolean",
"type": "boolean"
}
},
{
......@@ -540,7 +572,7 @@
"required": true,
"description": "Activo.",
"schema": {
"type": "boolean",
"type": "boolean"
}
},
{
......@@ -571,9 +603,9 @@
"required": false,
"description": "Numero de identificacion del centro de entrenamiento.",
"schema": {
"type": "integer",
"type": "integer"
}
},
}
],
"responses": {
"200": {
......@@ -615,7 +647,7 @@
"required": true,
"description": "Numero de documento de identificacion de la persona que se consulta la suscripcion.",
"schema": {
"type": "string",
"type": "string"
}
},
{
......@@ -633,7 +665,7 @@
"required": false,
"description": "Incluir suscripciones vencidas.",
"schema": {
"type": "boolean",
"type": "boolean"
}
}
],
......@@ -677,7 +709,7 @@
"required": true,
"description": "Numero de documento de identificacion de la reserva.",
"schema": {
"type": "string",
"type": "string"
}
},
{
......@@ -686,7 +718,7 @@
"required": false,
"description": "tipo de referencia.",
"schema": {
"type": "string",
"type": "string"
}
},
{
......@@ -695,7 +727,7 @@
"required": false,
"description": "estado de la reserva.",
"schema": {
"type": "string",
"type": "string"
}
}
],
......@@ -739,7 +771,7 @@
"required": true,
"description": "Numero de documento de identificacion.",
"schema": {
"type": "string",
"type": "string"
}
},
{
......@@ -748,7 +780,7 @@
"required": true,
"description": "codigo de categoria.",
"schema": {
"type": "string",
"type": "string"
}
},
{
......@@ -757,7 +789,7 @@
"required": false,
"description": "estado de la reserva.",
"schema": {
"type": "string",
"type": "string"
}
}
],
......@@ -997,9 +1029,7 @@
"descripcion":{
"type": "string",
"description": "Descripcion de la Tarifa "
},
}
}
},
......@@ -1397,7 +1427,7 @@
},
"prestador": {
"$ref": "#/components/schemas/prestador"
},
}
}
},
"centroEntrenamiento": {
......@@ -1662,7 +1692,7 @@
}
}
}
},
}
}
},
"reserva": {
......@@ -2343,6 +2373,23 @@
"actualizarMembresiaRequest": {
"type": "object",
"properties": {
"numeroCliente": {
"type": "string",
"description": "Número interno del cliente"
},
"estado": {
"type": "string",
"description": "<table border='1' width='10px'> <thead> <tr> <td colspan='2'><center>Tipos de estado</center></td> </tr> </thead> <tr> <th>Id</th> <th>Descripción</th> </tr> <tr> <td>ACTIVO</td> <td>Activa la membresía</td> </tr> <tr> <td>INACTIVO</td> <td>Inactiva la membresía</td></tr> </table>"
}
}
},
"registrarMembresiaRequest": {
"type": "object",
"properties": {
"numeroCliente": {
"type": "string",
"description": "Número interno del cliente"
},
"membresia": {
"$ref": "#/components/schemas/membresia"
}
......@@ -2411,6 +2458,23 @@
}
}
},
"registrarMembresiaResponse": {
"type": "object",
"required": [
"resultado"
],
"properties": {
"resultado": {
"type": "array",
"xml": {
"name": "resultado"
},
"items": {
"$ref": "#/components/schemas/resultado"
}
}
}
},
"obtenerMembresiasClienteResponse": {
"type": "object",
"required": [
......@@ -2694,9 +2758,18 @@
"type": "string",
"description": "Identificador de la membresia"
},
"estado": {
"tipo": {
"type": "string",
"description": "<table border='1' width='10px'> <thead> <tr> <td colspan='2'><center>Tipos de estado</center></td> </tr> </thead> <tr> <th>Id</th> <th>Descripción</th> </tr> <tr> <td>ACTIVO</td> <td>Activa la membresía</td> </tr> <tr> <td>INACTIVO</td> <td>Inactiva la membresía</td></tr> </table>"
"description": "Tipo de la membresía (A, B, C, D)"
},
"nombre": {
"type": "string",
"description": "Nombre del cliente de la membresía"
},
"fechaCaducidad": {
"type": "string",
"format": "date-time",
"description": "Fecha de caducidad de la membresía"
}
}
},
......@@ -2713,7 +2786,7 @@
},
"estado": {
"type": "string",
"description":"Estado de la membresia."
"description":"<table border='1' width='10px'> <thead> <tr> <td colspan='2'><center>Tipos de estado</center></td> </tr> </thead> <tr> <th>Id</th> <th>Descripción</th> </tr> <tr> <td>ACTIVO</td> <td>Activa la membresía</td> </tr> <tr> <td>INACTIVO</td> <td>Inactiva la membresía</td></tr> </table>"
}
}
},
......@@ -3675,6 +3748,17 @@
}
}
},
"description": "Informacion para actualizar clientes",
"required": true
},
"registrarMembresiaRequestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/registrarMembresiaRequest"
}
}
},
"description": "Informacion para registrar clientes",
"required": true
},
......
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