Description:
Walking Buddy is a React Web App that helps users be matched up with a walking buddy.
It allows users to make a calendar appointment with a buddy to walk. In progress: Ask Alexa how many buddies are in my zip code.
Tech Stack:
- React
- React Router
- Flask
- Python
Each endpoint manipulates or displays information related to the User whose Token is provided with the request:
-
Show all buddies :
GET /buddy
-
Show buddies by zip code :
GET /buddy/zip/<zip>
-
Show buddy email :
GET /buddy/email/<email>
-
Show buddy id :
GET /buddy/<buddy_id>
-
Show buddy zip and time preference :
GET /buddy/zip/<zip>/morning/<morning>/afternoon/<afternoon>/evening/<evening>
-
Show buddy JSON :
GET /buddy/JSON
-
Update info :
PUT /buddy/<buddy_id>
-
Create buddy :
POST /buddy
-
Register buddy :
POST /buddy/register
-
Create buddy email :
POST /buddy/email/<email>
-
Delete buddy info :
DELETE /buddy/<buddy_id>
Get the details of buddies.
URL : /buddy
Method : GET
Auth required : No
Permissions required : None
Code : 200 OK
Content examples
For a User with ID 1234 on the local database where that User has saved an email address and name information.
[
{
"buddy_id": 1,
"first_name": "Percy",
"last_name": "Walker",
"address": "Discovery Park" ,
"apt": "Apt #4",
"city": "Seattle",
"state": "WA",
"zipcode": "98177",
"email": "percy@gmail.com",
"morning": true,
"afternoon": true,
"evening": true,
"bio": "I like to play catch"
}
]
Get the details of buddies by zip code.
URL : /buddy/zip/<zip>
Method : GET
Auth required : No
Permissions required : None
Code : 200 OK
Content examples
For a User with ID 1234 on the local database where that User has saved an email address and name information.
[
{
"buddy_id": 1,
"first_name": "Percy",
"last_name": "Walker",
"address": "Discovery Park" ,
"apt": "Apt #4",
"city": "Seattle",
"state": "WA",
"zipcode": "98177",
"email": "percy@gmail.com",
"morning": true,
"afternoon": true,
"evening": true,
"bio": "I like to play catch"
}
]
Get the details of buddies.
URL : /buddy
Method : GET
Auth required : No
Permissions required : None
Code : 200 OK
Content examples
For a User with ID 1234 on the local database where that User has saved an email address and name information.
[
{
"buddy_id": 1,
"first_name": "Percy",
"last_name": "Walker",
"address": "Discovery Park" ,
"apt": "Apt #4",
"city": "Seattle",
"state": "WA",
"zipcode": "98177",
"email": "percy@gmail.com",
"morning": true,
"afternoon": true,
"evening": true,
"bio": "I like to play catch"
}
]