-
Notifications
You must be signed in to change notification settings - Fork 9
/
swagger-api_account.yaml
90 lines (90 loc) · 2.11 KB
/
swagger-api_account.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
87
88
89
90
openapi: 3.0.1
info:
title: Swagger Cloudtrust Management
description: 'API Self service for Cloudtrust.'
version: 1.0.0
servers:
- url: http://localhost:8888
tags:
- name: Account
description: Account management
paths:
/account/credentials/password:
post:
tags:
- Password
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdatePassword'
summary: Update a password
responses:
200:
description: The password has been updated
400:
description: Bad parameters (same old and new passwords, different new and confirm passwords, ...)
403:
description: Caller is not allowed to change the password
/account:
get:
tags:
- Account
summary: Get account representation of the current user
responses:
200:
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/User'
post:
tags:
- Account
summary: Update account representation of the current user
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/User'
responses:
200:
description: successful operation
delete:
tags:
- Account
summary: Delete account
responses:
200:
description: successful operation
components:
schemas:
UpdatePassword:
type: object
properties:
currentPassword:
type: string
newPassword:
type: string
confirmPassword:
type: string
User:
type: object
properties:
username:
type: string
email:
type: string
firstName:
type: string
lastName:
type: string
phoneNumber:
type: string
securitySchemes:
openId:
type: openIdConnect
openIdConnectUrl: http://toto.com/.well-known/openid-configuration
security:
- openId:
- todo