forked from pagopa/io-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_bpd.yaml
52 lines (52 loc) · 1.39 KB
/
api_bpd.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
swagger: "2.0"
info:
version: 1.0.0
title: BPD API
description: Bonus Pagamenti Digitali API for user authentication.
host: localhost
basePath: /bpd/api/v1
schemes:
- https
security:
- Bearer: []
paths:
"/user":
x-swagger-router-controller: SSOController
get:
operationId: getUserForBPD
summary: Get user's data
description: Returns the user data needed by BPD backend.
responses:
"200":
description: Found.
schema:
$ref: "#/definitions/BPDUser"
examples:
application/json:
name: "Name"
family_name: "Surname"
fiscal_code: "AAABBB01C02D123Z"
"401":
description: Token null or expired.
"500":
description: There was an error in retrieving the user data.
schema:
$ref: "#/definitions/ProblemJson"
definitions:
BPDUser:
$ref: "api_backend.yaml#/definitions/FederatedUser"
ProblemJson:
$ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v5.0.0/openapi/definitions.yaml#/ProblemJson"
FiscalCode:
$ref: "https://raw.githubusercontent.com/pagopa/io-functions-commons/v5.0.0/openapi/definitions.yaml#/FiscalCode"
responses: {}
parameters: {}
consumes:
- application/json
produces:
- application/json
securityDefinitions:
Bearer:
type: apiKey
name: Authorization
in: header