Travel Social Diary is a social media and travel diary application where users can record their travels in a diary format. Followers can comment on and like their entries.
There are 4 main functionalities:
- User account creation
- Personal travel diary
- Group (Collaborative) travel diary
- Connect with your friends and share your travel blog
- Method: POST
- Endpoint:
/users
- Body:
{ "User": { "Name": "shawn5", "Email": "shawn5@gmail.com", "Username": "shawn5" }, "Password": "shawn123" }
- Method: GET
- Endpoint:
/users/{userId}
- Method: PATCH
- Endpoint:
/users/{userId}/details
- Body:
{ "email": "shawn" }
- Method: DELETE
- Endpoint:
/users/{userId}
- Method: POST
- Endpoint:
/trips
- Body:
{ "title": "Thailand", "country": "Thailand", "startdate": "2023-12-02T12:03:03Z", "enddate": "2023-12-26T12:03:03Z" }
- Method: GET
- Endpoint:
/trips/{tripId}
- Method: PATCH
- Endpoint:
/trips/{tripId}
- Body:
{ "title": "New Title" }
- Method: DELETE
- Endpoint:
/trips/{tripId}
- Method: GET
- Endpoint:
/trips
-
Method: POST
-
Endpoint:
/travel-entries/
-
Body formdata:
Param Value Type UserId userId
text TripId tripId
text Location location
text Description description
text media file
file
- Method: GET
- Endpoint:
/travel-entries/{entryId}
- Method: PATCH
- Endpoint:
/travel-entries/{entryId}
- Body:
{ "location": "New Location" }
- Method: DELETE
- Endpoint:
/travel-entries/{entryId}
- Method: POST
- Endpoint:
/connection/{partyA}/{partyB}
- Method: GET
- Endpoint:
/connection/{userId}
-
Method: DELETE
-
Endpoint:
/connection/{userId}
-
Query Params:
Param Value targetId targetId