GET
Fetch/See data from data table
URL to send to:
http://localhost:5001/soulsCharacterList for character dataset
http://localhost:5001/soulsList?id=(id number) to get a specific class
Example: http://localhost:5001/soulsList?id=1 (to get God class)
POST
Post/Add a new entry into data table
General syntax (REMEMBER TO GO TO Body –> raw –> change Text to JSON):
{
“id”: id number,
“name”: “(name)”,
“gender”: “(gender)”,
“age”: number,
“class_name”: “(Class name)”,
“health”: value
“attack”: value
“resistance”: value
“power”: value
}
Example:
{
“id”: 2,
“name”: “EEEEE II”,
“gender”: “female”,
“age”: 21,
“class_name”: “Warrior”,
“health”: 110,
“attack”: 130,
“resistance”: 110,
“power”: 3
}
PUT
Put/Update data in data table
General syntax (REMEMBER TO GO TO Body –> raw –> change Text to JSON):
{
“id”: id number,
“(what you want to change)”: (new value or string)
}
Example:
{
“id”: 1,
“name”: “EEEEE II”
}
DELETE
Delete/Remove data from data table
General syntax (REMEMBER TO GO TO Body –> raw –> change Text to JSON):
{
“id”: id number
}
Example:
{
“id”: 1
}