forked from pagopa/io-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_myportal.yaml
54 lines (54 loc) · 1.49 KB
/
api_myportal.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: 1.0.0
title: MyPortal API
description: MyPortal API for user authentication.
host: localhost
basePath: /myportal/api/v1
schemes:
- https
security:
- Bearer: []
paths:
"/user":
x-swagger-router-controller: SSOController
get:
operationId: getUserForMyPortal
summary: Get user's data
description: Returns the user data needed by MyPortal backend.
responses:
"200":
description: Found.
schema:
$ref: "#/definitions/MyPortalUser"
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:
LimitedFederatedUser:
$ref: "api_backend.yaml#/definitions/LimitedFederatedUser"
MyPortalUser:
$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