This is a basic Python API allowing for CRUD operations on a User object.
Request:
Query Parameters:
These parameters should be added onto the end of the URL using the typical format. Ex:
http://localhost:5000/users?order_by=first_name
order_by
allows the user to specify which user attribute should be used for sorting.- Available options:
username
(default)email
first_name
last_name
- Available options:
order
allows the user to reverse the order in which users are listed.- Available options:
asc
(default)desc
- Available options:
Request:
*Note that "username" within the URL must be replaced with the user's actual username.
Request:
Post requests should have a payload formatted in JSON. See Payload Attributes below for details.
Payload Attributes:
username
- Required.
- Must be unique.
- Only alphanumeric characters are accepted.
email
- Only valid email format is accepted.
first_name
- Any string accepted.
last_name
- Any string accepted.
Request:
*Note that "username" within the URL must be replaced with the user's actual username.
Put requests should have a payload formatted in JSON. See Payload Attributes below for details.
Payload Attributes:
email
- Only valid email format is accepted.
first_name
- Any string accepted.
last_name
- Any string accepted.