-
Notifications
You must be signed in to change notification settings - Fork 0
API Backend Routes
James Ko edited this page Feb 2, 2024
·
1 revision
GET: api/session
- Successful Response when there is a User (200)
- Successful Response when there is NO User (200)
A User should be able to Log in with visible confirmation and without causing any crashes.
POST: api/session
- Successful Response (200)
- Error Response: Invalid Credentials (401)
- Error Response: Body Validation Error (400)
A User should be able to Sign Up for TheHobbyist without any crashes or bugs.
POST: api/users
- Successful Response (201)
- Error Response: User already exists with specified Email (500)
- Error Response: User already exists with specified Username (500)
- Error Response: Body Validation Error (400)
POST: api/profiles
- Successful Response (201)
- Error Response: Body Validation Error (400)
GET: api/profiles/:profileId
- Successful Response (200)
- Error Response: Profile not Found (404)
PUT: api/profiles/:profileId
- Successful Response (200)
- Error Response: Body Validation Error (400)
DELETE: api/profiles/:profileId
- Successful Response (200)
- Error Response: Profile not Found (404)
POST: api/hobbies
- Successful Response (201)
- Error Response: Body Validation Error (400)
GET: api/hobbies
- Successful Response (200)
GET: api/hobbies/:hobbyId
- Successful Response (200)
- Error Response: Hobby not Found (404)
PUT: api/hobbies/:hobbyId
- Successful Response (200)
- Error Response: Body Validation Error (400)
- Error Response: Hobby not Found (404)
DELETE: api/hobbies/:hobbyId
- Successful Response (200)
- Error Response: Hobby not Found (404)
POST: api/bookmarks
- Successful Response (201)
- Error Response: Body Validation Error (400)
GET: api/bookmarks
- Successful Response (200)
PUT: api/bookmarks/:bookmarkId
- Successful Response (200)
- Error Response: Bookmark not found (404)
DELETE: api/bookmarks/:bookmarkId
- Successful Response (200)
- Error Response: Bookmark not found (404)
POST: api/hobbies/:hobbyId/reviews
- Successful Response (201)
- Error Response: Body Validation Error (400)
GET: api/hobbies/:hobbyId/reviews
- Successful Response (200)
PUT: api/hobbies/:hobbyId/reviews/:reviewId
- Successful Response (200)
- Error Response: Body Validation Error (400)
- Error Response: Review not Found (404)
DELETE: api/hobbies/:hobbyId/reviews/:reviewId
- Successful Response (200)
- Error Response: Review not Found (404)