User Management

Download Spec

id

string

username

string

email

string

Request

{
  "username": "john_doe",
  "email": "john.doe@example.com"
}

Response

ExamplesSchema

User created

{
  "id": "string",
  "username": "string",
  "email": "string"
}

Get user by ID

get /users/{userId}

userId

string

required

Response

ExamplesSchema

A user

{
  "id": "string",
  "username": "string",
  "email": "string"
}

Update a user by ID

put /users/{userId}

id

string

username

string

email

string

Request

{
  "id": "string",
  "username": "string",
  "email": "string"
}

Response

ExamplesSchema

User updated

{
  "id": "string",
  "username": "string",
  "email": "string"
}

Delete a user by ID

delete /users/{userId}

userId

string

required

Response

ExamplesSchema

User deleted

Empty response

Was this page helpful?