/qa/questions/:product_id
Parameters
product_id
will tell the db which questions you wantpage
parameter that will tell it how many pages to returncount
parameter that will tell it how many questions per page
/qa/questions
Takes a JSON
object containing the following:
name
of at least 3 characters and a maximum of 60email
of at least 3 characters and a maximum of 60body
of at least 3 characters and a maximum of 1000
/qa/questions/:question_id/helpful
Takes a question_id
and updates that question by incrementing it helpfulness by 1
/qa/questions/:question_id/report
Takes a question_id
and updates that question by setting it's reported value to true
/qa/questions/:question_id/answers
Parameters
question_id
will tell the db which answers you wantpage
parameter that will tell it how many pages to returncount
parameter that will tell it how many anwswers per page
/qa/questions/:question_id/answers
Takes a question_id
and adds an answer to that question should have a body with the following:
name
of at least 3 characters and a maximum of 60email
of at least 3 characters and a maximum of 60body
of at least 3 characters and a maximum of 1000
/qa/answers/:answer_id/helpful
Updates answer_id
by incrementing it's helpfullness 1
/qa/answers/:answer_id/report
Update answer_id
by setting it's reported value to true