-
Notifications
You must be signed in to change notification settings - Fork 25
/
api_public.yaml
71 lines (71 loc) · 1.68 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
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"
definitions:
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
consumes:
- application/json
produces:
- application/json