https://bwschoolinthecloud.herokuapp.com/
This Web API follows the REST principles:
- resources are accessed using standard HTTPS requests
- HTTP requests are made to distinct API endpoints
- use HTTP verbs (GET, POST, PUT, DELETE, etc) based on the action taken
- GET - Retrieves existing resources
- POST - Creates a new resource
- PUT - Updates an existing resource
- DELETE - Deletes resources
- All Data is returned in JSON format
- Responses that do not return data, will return a "message" object
- Errors return an "error" object
- Auth requests return a "token" object
Required fields:
{
"email": "[email protected]",
"password": "password",
"username": "uniqueUsername",
"role": "role"
}
Required fields:
{
"username": "username",
"password": "password"
}
ALL of the following non-auth requests require an authorization token in the header
- Get All Users
- Get User By ID
- Filter Users By Request Query
- Update User
- Delete User
- Get All Tasks
- Get Task By ID
- Add Task
- Update Task
- Delete Task
- Get All Sessions
- Get Session By ID
- Add Session
- Update Session
- Delete Session