POST /users
POST
/users
<Description of the endpoint>
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
name
string
Name of the user
age
number
Age of the user
Response
{ "id": 1, "name": "John", "age": 30 }
{ "error": "Invalid request" }
Last updated 1 year ago