- An API interactve client eg Postman or RapidAPI.
- visit the base URL/classes eg localhost:5000/class
- Set the API call to GET request (The default in postman is already GET)
- Hit Send and retrieve the data.
NOTE: The only available retrieve parameter available is the 'id'
- visit the base URL/classes eg localhost:5000/class
- append the data id after a forward slash to the end eg localhost:5000/class/2, where 2 is the id
- Set the API call to GET request
- Hit send
- visit the base URL/classes eg localhost:5000/class
- Go to Headers in the postman client and set Content-Type to application/json
- Go to Body and input the url and action in a JSON format with keys 'url' and 'action' eg
{
"url": "crowdclassroom.com",
"action": "Created crowdclassroom"
}
- Hit Send
- ALways use a double-quote when creating JSON objects for POST and PUT request
- The id parameter is auto-incremented and should not be tampered with.
- visit the base URL/classes eg localhost:5000/class
- append the data id to be updated after a forward slash to the end eg localhost:5000/class/2, where 2 is the id
- Input the new JSON data
- Hit Send
- visit the base URL/classes eg localhost:5000/class
- append the data id to be deleted after a forward slash to the end eg localhost:5000/class/2, where 2 is the id
- Hit Send