-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi_mit_voucher.yaml
54 lines (52 loc) · 1.4 KB
/
api_mit_voucher.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
swagger: "2.0"
info:
version: 0.0.1
title: MIT Voucher service for IO App
basePath: /api/v1/mitvoucher/auth
schemes:
- https
security:
- Bearer: []
paths:
/token:
get:
operationId: getMitVoucherToken
summary: Retrieve a token for Mit Voucher API integration
description: Generate a JWT to use on every MIT Voucher remote API call
responses:
'200':
description: Payload with Json Web Token
schema:
$ref: "#/definitions/MitVoucherToken"
'400':
description: Payload has bad format
'401':
description: Bearer token null or expired
'403':
description: Access data provided are invalid
'410':
description: Endpoint no longer available
'500':
description: Generic server error
'504':
description: Gateway Timeout
definitions:
ProblemJson:
$ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v10.7.0/openapi/definitions.yaml#/ProblemJson"
SuccessResponse:
$ref: "api_backend.yaml#/definitions/SuccessResponse"
MitVoucherToken:
title: Mit Voucher Token
description: A Json Web Token used to call Mit Voucher APIs
type: object
properties:
token:
type: string
minLength: 1
required:
- token
securityDefinitions:
Bearer:
type: apiKey
name: Authorization
in: header