All URIs are relative to http://127.0.0.1:3000
Method | HTTP request | Description |
---|---|---|
AddUser | Post /api/users | Create a new user in the system |
DeleteUser | Delete /api/users/{id} | Deletes a user from the system |
FindUsers | Get /api/users | Retrieves all the users from the system |
User AddUser(ctx, body) Create a new user in the system
Create a new user in the system
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | NewUser | Create a new user in the system |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User DeleteUser(ctx, id) Deletes a user from the system
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | user id to delete |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]User FindUsers(ctx, ) Retrieves all the users from the system
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]