Web Interface (Swagger REST API)
Overview
Swagger is an interactive documentation system that also allows you to conveniently try out & make REST API calls from the documentation page itself. Â
To interact with it, open a web browser to port 9000 of the root of your Syndeia Cloud instance, ex:Â http://myhost.mydomain.com:9000, login, click on "?", then APIÂ ("REST API Swagger Documentation"):Â Â
Â
The Swagger REST API Documentation page should open as shown below. The REST endpoints are organized based on a system of repositories, containers, artifacts, and relations (see Conceptual Model for an overview).
To Login
The sign-in request authenticates the user and returns a token if succesful. The token is then used for every REST API request to the Syndeia Cloud server. Follow the steps below to sign-in and register the token so that you do not have to specify it for each request.Â
1. Click on POST /signIn button under the Auth category.
​5. Click the blue Execute button. Â
8. Click the Authorize button at the top of the page (RHS)​, a popup screen should show. Â
To Create a New User
12. Click the Edit button. The field should now become editable. Â
13. Fill out the requested fields, ie: first name, last name, email, password. Â
14. Click the blue Execute button. Â
15. If successful, you should receive an HTTP 200 response back with JSON data. If there was a form error, you should receive an HTTP 4XX response back with an appropriate error message. Â
To Reset a Password
18. Click the Edit button. The field should now become editable. Â
19. Fill out the requested fields, ie: email, newPassword. Â
20. Click the blue Execute button. Â
21. If successful, you should receive an HTTP 200 response back with JSON data. If there was a form error, you should receive an HTTP 4XX response back with an appropriate error message. Â
 Note, Reset Password is considered an admin-level operation that requires the USER_MODIFY
permission. This is distinct from the Change Password operation which does not require any permission and only applies to one's own password. Â
To Update a User (Permissions)
25. Click the blue Execute button. Â
26. If successful, you should receive an HTTP 200 response back with JSON data. If there was a form error, you should receive an HTTP 4XX response back with an appropriate error message.
27. Copy the key value
   Â
30. Click the Edit button. The field should now become editable. Â
31. Fill out the requested fields, ie: key, firstName, lastName, permissions.  Â
| Create user permission |
| User read permission |
| User modification permission |
| User remove permission |
| Create repository permission |
| Repository modification permission |
| Repository deletion permission |
| Create container permission |
| Container modification permission |
| Artifact relation write permission |
| Container deletion permission |
| General read permission |
33. If successful, you should receive an HTTP 200 response back with JSON data. If there was a form error, you should receive an HTTP 4XX response back with an appropriate error message.
To Delete a User
37. Click the blue Execute button. Â
38. If successful, you should receive an HTTP 200 response back with JSON data. If there was a form error, you should receive an HTTP 4XX response back with an appropriate error message.
39. Copy the key value
   Â
42. Fill out the requested field, ie: key. Â
44. If successful, you should receive an HTTP 200 response back with JSON data. If there was a form error, you should receive an HTTP 4XX response back with an appropriate error message.