Skip to content

emike108/Reviews-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reviews-API


Synopsis

This repo is a RESTful API server created for Project Atelier. Specifically it is used to retreive the reviews specific data needed for the project. It house its data in a MySQL database and connects through a Node.js server running Express.

The server allows for GET requests of review data and review meta data for a specific product ID. POST reqeusts of new review for a specific product. PUT request to update helpful count and to report a review as inapproprite.


Motivation

This API server was created to replace the previously employed outdated backend server and to connect flawlessly with the already existing frontend of the application.


Endpoints

The following are the available endpoints on the API server: (Replace local host with IP address when deployed, must provide requested parameters)

GET:
http://localhost:4000/reviews/:product_id
http://localhost:4000/reviews/meta/:product_id

POST:
http://localhost:4000/reviews/:product_id

PUT:
http://localhost:4000/reviews/:review_id/helpful
http://localhost:4000/reviews/:review_id/report

About

Project Atelier - implementation of improved backend to an existing code base

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published