This service replaces the existing API with a backend system that can support the full data set for the project and can scale to meet the demands of production traffic.
- Run
npm install
to install dependencies. - Run
npm start
to start the Node server.
GET routes:
/qa/questions
- Return all questions with nested answers for theproduct_id
supplied as the parameter/qa/questions/:question_id/answers
- Return all questions with nested answers for thequestion_id
supplied as the path
POST routes:
/qa/questions
- Submit a new question for theproduct_id
in the request body./qa/questions/:question_id/answers
- Submit a new answer for thequestion_id
in the request body.