-
Notifications
You must be signed in to change notification settings - Fork 4
/
openapi-appengine.yaml
75 lines (75 loc) · 1.78 KB
/
openapi-appengine.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
swagger: "2.0"
info:
description: "Ejemplo OpenAPI de Java Flexible dentro de Google Cloud Platform"
version: "1.0.0"
title: "GCP Demo"
termsOfService: "http://swagger.io/terms/"
contact:
email: "[email protected]"
license:
name: "Apache 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
host: "omega-metric-179905.appspot.com"
basePath: "/gcp"
tags:
- name: "hola"
description: "Hola Mundo!"
externalDocs:
description: "Encuentra mas en"
url: "http://cirrocode.com"
schemes:
- "http"
paths:
/hola/{nombre}:
get:
tags:
- "hola"
summary: "Saluda a una persona por su nombre"
description: "Retorna un mensaje de saludo"
operationId: "saludo"
produces:
- "application/json"
parameters:
- name: "nombre"
in: "path"
description: "Nombre de la persona a saludar"
required: true
type: "string"
responses:
200:
description: "Operacion exitosa"
schema:
$ref: "#/definitions/HolaResponse"
security:
- api_key: []
/mensajes:
get:
tags:
- "mensajes"
summary: "Recupera los mensajes de saludo"
description: "Recupera mensajes"
operationId: "leerMensajes"
produces:
- "application/json"
responses:
200:
description: "Operacion exitosa"
schema:
type: "array"
items:
$ref: "#/definitions/MensajesResponse"
security:
- api_key: []
securityDefinitions:
api_key:
type: "apiKey"
name: "api_key"
in: "query"
definitions:
HolaResponse:
type: "object"
MensajesResponse:
type: "object"
externalDocs:
description: "Find out more about Swagger"
url: "http://swagger.io"