forked from pagopa/io-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_fims.yaml
86 lines (86 loc) · 2.36 KB
/
api_fims.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
swagger: "2.0"
info:
version: 1.0.0
title: FIMS API
description: Federated Identity Management System API for user authentication.
host: localhost
basePath: /fims/api/v1
schemes:
- https
security:
- Bearer: []
paths:
"/user":
x-swagger-router-controller: SSOController
get:
operationId: getUserForFIMS
summary: Get user's data
description: Returns the user data needed by FIMS backend.
responses:
"200":
description: Found.
schema:
$ref: "#/definitions/FIMSUser"
examples:
application/json:
name: "Name"
family_name: "Surname"
fiscal_code: "AAABBB01C02D123Z"
auth_time: 1648474413
acr: "https://www.spid.gov.it/SpidL2"
email: "[email protected]"
date_of_birth: "2002-01-01"
"400":
description: Validation error
schema:
$ref: "#/definitions/ProblemJson"
"401":
description: Token null or expired.
"404":
description: User not found
schema:
$ref: "#/definitions/ProblemJson"
"429":
description: Too may requests
"500":
description: There was an error in retrieving the user data.
schema:
$ref: "#/definitions/ProblemJson"
definitions:
FederatedUser:
$ref: "api_backend.yaml#/definitions/FederatedUser"
FIMSUser:
allOf:
- type: object
properties:
date_of_birth:
type: string
format: date
email:
$ref: "api_backend.yaml#/definitions/EmailAddress"
auth_time:
type: number
acr:
$ref: "#/definitions/SpidLevel"
required:
- date_of_birth
- auth_time
- acr
- $ref: "#/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"
SpidLevel:
$ref: "api_backend.yaml#/definitions/SpidLevel"
responses: {}
parameters: {}
consumes:
- application/json
produces:
- application/json
securityDefinitions:
Bearer:
type: apiKey
name: Authorization
in: header