31
31
tags :
32
32
- Meta
33
33
summary : Retreives general configuration information
34
- description : Retrieves an object containing the most important configuration values of the registry. This contains the docker and traefik URIs.
34
+ description : >-
35
+ Retrieves an object containing the most important configuration values
36
+ of the registry. This contains the docker and traefik URIs.
35
37
operationId : configurationInfo
36
38
responses :
37
39
' 200 ' :
@@ -41,51 +43,52 @@ paths:
41
43
properties :
42
44
DockerHttpApi :
43
45
type : string
44
- example : " 172.0.2.1:9095"
46
+ example : ' 172.0.2.1:9095'
45
47
TraefikProxyUri :
46
48
type : string
47
- example : " 172.0.2.1:80"
49
+ example : ' 172.0.2.1:80'
48
50
/users/authenticate :
49
51
post :
50
52
tags :
51
53
- User Management
52
54
summary : Authenticates a user and returns a valid JWT
53
- description : >-
54
- This endpoints validates the username and password that must
55
- be supplied in the Authorization header (using HTTP Basic Authentication).
56
- If valid, a JSON Web Token will be generated and returned, that may be used
57
- to authenticate the user for subsequent requests.
55
+ description : >-
56
+ This endpoints validates the username and password that must be
57
+ supplied in the Authorization header (using HTTP Basic Authentication).
58
+ If valid, a JSON Web Token will be generated and returned, that may be
59
+ used to authenticate the user for subsequent requests.
58
60
operationId : authenticate
59
61
parameters :
60
62
- in : header
61
63
name : Delphi-Authorization
62
- description : >-
63
- Valid JWT that autenticates the calling entity.
64
+ description : Valid JWT that autenticates the calling entity.
64
65
type : string
65
66
required : true
66
67
- in : header
67
68
name : Authorization
68
- description : >-
69
- HTTP Basic Authentication following the schema 'Basic <User:Password>
70
- where the concatination of username and password is Base64-Encoded.
69
+ description : >-
70
+ HTTP Basic Authentication following the schema 'Basic
71
+ <User:Password> where the concatination of username and password is
72
+ Base64-Encoded.
71
73
type : string
72
74
required : true
73
75
responses :
74
76
' 200 ' :
75
- description : Supplied data is valid, a JWT is returned
77
+ description : ' Supplied data is valid, a JWT is returned'
76
78
schema :
77
79
type : string
78
- example : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
80
+ example : >-
81
+ eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
79
82
' 401 ' :
80
- description : Unauthorized, invalid username / password supplied.
83
+ description : ' Unauthorized, invalid username / password supplied.'
81
84
/users/add :
82
85
post :
83
86
tags :
84
87
- User Management
85
88
summary : Adds a new users for the registry
86
89
description : >-
87
- Adds a new user that is passed in the requests entity. The id of the user
88
- will be returned.
90
+ Adds a new user that is passed in the requests entity. The id of the
91
+ user will be returned.
89
92
operationId : addUser
90
93
parameters :
91
94
- in : body
@@ -113,13 +116,70 @@ paths:
113
116
- Component
114
117
responses :
115
118
' 200 ' :
116
- description : OK, user has been added, id is returned
119
+ description : ' OK, user has been added, id is returned'
117
120
schema :
118
121
type : integer
119
122
format : int64
120
123
example : 42
121
124
' 400 ' :
122
- description : Bad request, name already exists
125
+ description : ' Bad request, name already exists'
126
+ /users :
127
+ get :
128
+ tags :
129
+ - User Management
130
+ summary : Gets a list of all registered users
131
+ description : >-
132
+ Returns a list of all users registered at the registry. Requires caller to have admin privileges.
133
+ operationId : allUsers
134
+ responses :
135
+ ' 200 ' :
136
+ description : " OK, list of users is being returned"
137
+ schema :
138
+ type : array
139
+ items :
140
+ $ref : ' #/definitions/User'
141
+ /users/{Id} :
142
+ get :
143
+ tags :
144
+ - User Management
145
+ summary : Gets the user with the specified id
146
+ description : >-
147
+ Returns the user with the specified id, if that id is present at the registry.
148
+ operationId : retrieveUser
149
+ parameters :
150
+ - in : path
151
+ name : Id
152
+ required : true
153
+ description : Id of the user to retrieve
154
+ type : integer
155
+ format : int64
156
+ responses :
157
+ ' 200 ' :
158
+ description : " OK, user is being returned"
159
+ schema :
160
+ $ref : ' #/definitions/User'
161
+ ' 404 ' :
162
+ description : " Id not found"
163
+ /users/{Id}/remove :
164
+ post :
165
+ tags :
166
+ - User Management
167
+ summary : Removes the user with the specified id
168
+ description : >-
169
+ Removes the user with the specified id, if that id is present at the registry.
170
+ operationId : removeUser
171
+ parameters :
172
+ - in : path
173
+ name : Id
174
+ required : true
175
+ description : Id of the user to remove
176
+ type : integer
177
+ format : int64
178
+ responses :
179
+ ' 200 ' :
180
+ description : " OK, user has been removed"
181
+ ' 404 ' :
182
+ description : " Id not found"
123
183
/instances/register :
124
184
post :
125
185
tags :
@@ -886,6 +946,27 @@ paths:
886
946
' 500 ' :
887
947
description : ' Internal server error, unknown operation result DESCRIPTION'
888
948
definitions :
949
+ User :
950
+ type : object
951
+ required :
952
+ - userName
953
+ - secret
954
+ - userType
955
+ properties :
956
+ id :
957
+ type : integer
958
+ format : int64
959
+ userName :
960
+ type : string
961
+ example : Ben
962
+ secret :
963
+ type : string
964
+ example : 0DE19F6FAAFB7CF372172CEA658800999A75DB9E79AF5F378F274E47DF810CEE
965
+ userType :
966
+ type : string
967
+ enum :
968
+ - User
969
+ - Admin
889
970
InstanceLink :
890
971
type : object
891
972
required :
0 commit comments