User attributes:
- id `(Number)` : unique identifier.
- fname `(String)` : First Name.
- lname `(String)` : Last Name.
- email `(String)` : email id of the user.
Common responses:
- 401
```json
{
"error": "error.unauthorized"
}
```
- 500
```json
{
"error": "error.internalserver"
}
```
- xxx
```json
{
"error": "error.xxxxx"
}
```
Authentication:
- Describing api authentication
Retrieve paginated list of users.
-
Parameters:
- since (optional, String) ... Timestamp in ISO 8601 format:
YYYY-MM-DDTHH:MM:SSZ
Only users updated at or after this time are returned. - limit (optional, Number) ... maximum number of records expected by client.
- since (optional, String) ... Timestamp in ISO 8601 format:
-
Request (application/json)
-
Response 200 (application/json)
[
{
"id": 1,
"fname": "Pandurang",
"lname": "Patil",
"email": "[email protected]"
},
{
"id": 2,
"fname": "Sangram",
"lname": "Shinde",
"email": "[email protected]"
}
]
- Request (application/json)
{
"fname": "Ram",
"lname": "Jadhav",
"email": "[email protected]"
}
- Response 201 (application/json)
{
"id": 3,
"fname": "Ram",
"lname": "Jadhav",
"email": "[email protected]"
}
- Response 200 (application/json)
-
Header:
- X-My-Header: The Value
-
Body
{ "id": 1, "fname": "Pandurang", "lname": "Patil", "email": "[email protected]" }
-
Update user details
- Request (application/json)
{
"id": 1,
"fname": "Pandurang",
"lname": "Patil",
"email": "[email protected]"
}
- Response 200 (application/json)
{
"id": 1,
"fname": "Pandurang",
"lname": "Patil",
"email": "[email protected]"
}
- Response 204