@@ -45,15 +45,33 @@ paths:
4545 TraefikProxyUri :
4646 type : string
4747 example : " 172.0.2.1:80"
48+ /users :
49+ get :
50+ tags :
51+ - User Management
52+ summary : Get all users
53+ description : >-
54+ This command retrieves a list of all users that are created at
55+ the user. All users are being returned.
56+ operationId : allUser
57+ responses :
58+ ' 200 ' :
59+ description : List of users
60+ schema :
61+ type : array
62+ items :
63+ $ref : ' #/definitions/User'
64+ ' 400 ' :
65+ description : Invalid value
4866 /users/authenticate :
4967 post :
5068 tags :
5169 - User Management
5270 summary : Authenticates a user and returns a valid JWT
53- description : >-
54- This endpoints validates the username and password that must
71+ description : >-
72+ This endpoints validates the username and password that must
5573 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
74+ If valid, a JSON Web Token will be generated and returned, that may be used
5775 to authenticate the user for subsequent requests.
5876 operationId : authenticate
5977 parameters :
6583 required : true
6684 - in : header
6785 name : Authorization
68- description : >-
86+ description : >-
6987 HTTP Basic Authentication following the schema 'Basic <User:Password>
7088 where the concatination of username and password is Base64-Encoded.
7189 type : string
@@ -120,6 +138,53 @@ paths:
120138 example : 42
121139 ' 400 ' :
122140 description : Bad request, name already exists
141+
142+ /users/{Id} :
143+ post :
144+ tags :
145+ - User Management
146+ summary : Get a user with id
147+ description : >-
148+ Get a particular user with its id. The user will be returned.
149+ operationId : getUser
150+ parameters :
151+ - in : path
152+ name : Id
153+ description : Id of the user
154+ required : true
155+ type : integer
156+ format : int64
157+ responses :
158+ ' 200 ' :
159+ description : Single user data
160+ schema :
161+ $ref : ' #/definitions/User'
162+ ' 404 ' :
163+ description : User id was not found on the server.
164+
165+ /users/{Id}/remove :
166+ post :
167+ tags :
168+ - User Management
169+ summary : Remove a user
170+ description : >-
171+ Remove a user with its id. If the operation is successful it
172+ will return success message.
173+ operationId : removeUser
174+ parameters :
175+ - name : Id
176+ in : path
177+ description : The ID of the user to be deleted.
178+ required : true
179+ type : integer
180+ format : int64
181+ responses :
182+ ' 200 ' :
183+ description : user successfully removed
184+ ' 400 ' :
185+ description : User id does not exist.
186+ ' 500 ' :
187+ description : An internal server error occurred.
123188 /instances/register :
124189 post :
125190 tags :
@@ -157,7 +222,7 @@ paths:
157222 summary : Get all instances of the specified type
158223 description : >-
159224 This command retrieves a list of all instances that are registered at
160- the registry and that have the specified type. If no type is specified,
225+ the registry and that have the specified type. If no type is specified,
161226 all instances are being returned.
162227 operationId : instanceOfType
163228 parameters :
@@ -616,7 +681,7 @@ paths:
616681 This command informs the registry about an instance that was stopped
617682 manually, meaning not via calling /stop on the instance registry. This
618683 is only applicable to instances running inside a docker container, as
619- non-container instances would deregister themselves when stopped.
684+ non-container instances would deregister themselves when stopped.
620685 operationId : reportStop
621686 parameters :
622687 - name : Id
@@ -815,7 +880,7 @@ paths:
815880 description : >-
816881 This command assignes a new dependency to the instance with the
817882 specified id. Internally, this will stop the instance, assign the new
818- dependency and start the instance again. This is why this is only
883+ dependency and start the instance again. This is why this is only
819884 applicable to docker instances.
820885 operationId : assignInstance
821886 parameters :
@@ -926,6 +991,21 @@ definitions:
926991 - StateChangedEvent
927992 payload :
928993 type : object
994+ User :
995+ type : object
996+ properties :
997+ id :
998+ type : integer
999+ format : int64
1000+ userName :
1001+ type : string
1002+ example : MyUser
1003+ userType :
1004+ type : string
1005+ enum :
1006+ - Admin
1007+ - User
1008+ - Component
9291009 Instance :
9301010 type : object
9311011 required :
0 commit comments