Skip to content

Latest commit

 

History

History
86 lines (53 loc) · 2.39 KB

DefaultApi.md

File metadata and controls

86 lines (53 loc) · 2.39 KB

{{classname}}

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

AddUser

User AddUser(ctx, body) Create a new user in the system

Create a new user in the system

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body NewUser Create a new user in the system

Return type

User

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteUser

User DeleteUser(ctx, id) Deletes a user from the system

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64 user id to delete

Return type

User

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FindUsers

[]User FindUsers(ctx, ) Retrieves all the users from the system

Required Parameters

This endpoint does not need any parameter.

Return type

[]User

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]