-
Notifications
You must be signed in to change notification settings - Fork 25
/
api_pn.yaml
79 lines (79 loc) · 2.07 KB
/
api_pn.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
swagger: "2.0"
info:
version: 1.0.0
title: Piattaforma Notifiche
host: localhost
basePath: /api/v1/pn
schemes:
- https
security:
- Bearer: []
paths:
"/activation":
get:
operationId: getPNActivation
summary: Get Piattaforma Notifiche Activation
description: |
Get the Piattaforma Notifiche activation for Special Service "Avvisi di Cortesia"
parameters:
- in: query
name: isTest
required: false
type: boolean
responses:
"200":
description: Request created.
schema:
$ref: "#/definitions/PNActivation"
"401":
description: Bearer token null or expired.
"500":
description: Internal Server Error
schema:
$ref: "#/definitions/ProblemJson"
post:
operationId: upsertPNActivation
summary: Upsert Piattaforma Notifiche Activation
description: |
Upsert the Piattaforma Notifiche activation for Special Service "Avvisi di Cortesia"
parameters:
- in: body
name: body
required: true
schema:
$ref: '#/definitions/PNActivation'
x-examples:
application/json:
activation_status: true
- in: query
name: isTest
required: false
type: boolean
responses:
"204":
description: Request created.
"400":
description: Bad request
schema:
$ref: "#/definitions/ProblemJson"
"401":
description: Bearer token null or expired.
"500":
description: Internal Server Error
schema:
$ref: "#/definitions/ProblemJson"
definitions:
ProblemJson:
$ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v21.0.1/openapi/definitions.yaml#/ProblemJson"
PNActivation:
type: object
properties:
activation_status:
type: boolean
required:
- activation_status
securityDefinitions:
Bearer:
type: apiKey
name: Authorization
in: header