-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathapi_public.yaml
118 lines (118 loc) · 2.83 KB
/
api_public.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
swagger: "2.0"
info:
version: 1.0.0
title: Public API
description: Mobile and web proxy API gateway.
host: localhost
basePath: /
schemes:
- https
paths:
/:
x-swagger-router-controller: ServerInfoController
get:
operationId: Redirect
summary: Redirect
description: |
Redirects to a specific URL.
responses:
'302':
description: HTTP Redirect.
headers:
Location:
description: URL where the client is being redirected.
type: string
"/info":
x-swagger-router-controller: ServerInfoController
get:
operationId: getServerInfo
summary: Runtime server info
description: >
Returns runtime information about the server.
responses:
"200":
description: Runtime server info.
schema:
$ref: "#/definitions/ServerInfo"
examples:
application/json:
version: "0.0.1"
min_app_version: "0.0.0"
min_app_version_pagopa: "0.0.0"
"/api/v1/status":
x-swagger-router-controller: ServerStatusController
get:
summary: Get service statuses
description: Returns the current status of all microservices.
responses:
'200':
description: App backend microservices statuses.
schema:
$ref: '#/definitions/ServicesStatus'
'500':
description: Internal Server Error
schema:
$ref: "#/definitions/ProblemJson"
definitions:
ProblemJson:
$ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v29.1.1/openapi/definitions.yaml#/ProblemJson"
ServerInfo:
type: object
title: Server information
properties:
version:
type: string
min_app_version:
$ref: "#/definitions/VersionPerPlatform"
min_app_version_pagopa:
$ref: "#/definitions/VersionPerPlatform"
required:
- version
- min_app_version
- min_app_version_pagopa
VersionPerPlatform:
type: object
title: Specify a version for ios and another for android
properties:
ios:
type: string
android:
type: string
required:
- ios
- android
ServicesStatus:
type: object
properties:
services:
type: array
items:
$ref: "#/definitions/ServiceStatus"
required:
- services
ServiceStatus:
type: object
properties:
id:
type: string
status:
$ref: '#/definitions/StatusEnum'
details:
type: string
required:
- id
- status
- details
StatusEnum:
type: string
description: Status of a service
enum:
- OK
- WARNING
- CRITICAL
- PARTIAL_AVAILABILITY
- MANTAINANCE
consumes:
- application/json
produces:
- application/json