Download OpenAPI specification:Download
A Simple API for creating, editing, and deleting users. The goal here is to offer minimal flexability that is sufficient for demonstrating a backend server or database integration.
| If-None-Match | any Makes the request conditional. The server will send back the requested resource only if it does not have an ETag matching the given one. For non-safe methods, it will only upload the resource in this case. |
[- {
- "id": 234,
- "name": "John Doe",
- "email": "john@example.com"
}, - {
- "id": 89,
- "name": "Jane Doe",
- "email": "jane@example.com"
}
]| id required | integer Example: 15 ID of the respective user to display |
| If-None-Match | any Makes the request conditional. The server will send back the requested resource only if it does not have an ETag matching the given one. For non-safe methods, it will only upload the resource in this case. |
{- "id": 234,
- "name": "John Doe",
- "email": "john@example.com"
}add a new user with given information
| name required | string (The Name Schema) The name given to a user. |
| email required | string <email> (The Email Schema) The means of contact for a given user. |
{- "name": "John Doe",
- "email": "john@example.com"
}{- "id": 234,
- "name": "John Doe",
- "email": "john@example.com"
}| id required | integer Example: 15 ID of the respective user to display |
| If-Match required | any Makes the request conditional. The server will send back the requested resource only if it matches one of the listed ETags. For non-safe methods, it will only upload the resource in this case. |
edit any number of settings for a given user
| name | string (The Name Schema) The name given to a user. |
string <email> (The Email Schema) The means of contact for a given user. |
{- "name": "Jane Marry Doe"
}{- "id": 234,
- "name": "John Doe",
- "email": "john@example.com"
}| id required | integer Example: 15 ID of the respective user to display |
| If-Match required | any Makes the request conditional. The server will send back the requested resource only if it matches one of the listed ETags. For non-safe methods, it will only upload the resource in this case. |
{- "error": "specified id does not exist"
}Preflight requests to support Cross-origin resource sharing (CORS). Describes access to a selected resources from a different origin