Skip to content

Instantly share code, notes, and snippets.

@M-ZubairAhmed
Created December 4, 2020 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save M-ZubairAhmed/1f2050b585545b9dcbdcf1506a59a457 to your computer and use it in GitHub Desktop.
Save M-ZubairAhmed/1f2050b585545b9dcbdcf1506a59a457 to your computer and use it in GitHub Desktop.
Excercises for Django
[
{
"endpoint": "/api/exercise/new-user",
"method": "POST",
"postdata": {
"username": ""
},
"returndata": {
"_id": "",
"username": ""
}
},
{
"endpoint": "api/exercise/users",
"method": "GET",
"returndata": [
{
"_id": "",
"username": ""
}
]
},
{
"endpoint": "/api/exercise/add",
"method": "POST",
"postdata": {
"userId": "",
"description": "",
"duration": ""
},
"returndata": {
"_id": "",
"username": "",
"description": "",
"duration": ""
}
},
{
"endpoint": "/api/exercise/log/:userid",
"method": "GET",
"returndata": {
"_id": "",
"username": "",
"count": "",
"log": [
{
"description": "",
"duration": ""
}
]
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment