-
Notifications
You must be signed in to change notification settings - Fork 0
API Documentation
Kglines edited this page Nov 4, 2022
·
4 revisions
- POST credentials for authentication
- POST create new user
- DELETE user session
- GET my questions
Response Code: 200
{"Questions":
> > [{
id: 1,
userId: 1,
title: "Sample Title",
body: "Sample Body",
created_on: 2022-12-12,
last_update_on: 2022-12-12
},
{
id: 2,
userId: 1,
title: "Sample Title",
body: "Sample Body",
created_on: 2022-12-12,
last_update_on: 2022-12-12
}
]
}
- GET my answers
- GET all questions
- POST a new question
- GET a specific question and it's associated answers, cumulative votes, and comments
- PUT to update a specific question
- DELETE a specific question
- POST a new answer
- PUT to update a specific answer
- DELETE a specific answer
- POST a new comment
- PUT to update a specific comment
- DELETE a specific comment
- POST a vote direction for a specific user on a specific answer