Users resource


List of users

Endpoint

Method URI Headers
GET /api/users Default

URI Params

none

DATA Params

none


Create user

Endpoint

Method URI Headers
POST /api/users Default

URI Params

none

DATA Params

{warning} Before, you need to create workspace to get workspace id

{
"name" : string,
"email" : string,
"password" : string,
"isAdmin" : bool (1|0),
"workspace_id" : bool (1|0),
}


Get user

Endpoint

Method URI Headers
POST /api/users/{user:email} Default

URI Params

{warning} Param need to be a user email

Exemple : /api/users/clement@web-id.fr

DATA Params

none


Update user

Endpoint

Method URI Headers
PUT / PATCH /api/users/{user:email} Default

URI Params

{warning} Param need to be a user email

Exemple : /api/users/clement@web-id.fr

DATA Params

{
    "name" : string,
    "email" : string,
    "password" : string,
    "isAdmin" : bool (1|0),
    "workspace_id" : bool (1|0),
}


Delete user

Endpoint

Method URI Headers
DELETE /api/users/{user:email} Default

URI Params

{warning} Param need to be a user email

Exemple : /api/users/clement@web-id.fr

DATA Params

none