GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Leonelcode/rest-server: Basic REST API server, stores reviews using JSON as DB

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
routes
routes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 
server.js
server.js
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Getting started

Clone this repository, and run the install command (preferrably Yarn):

yarn install

// or

npm install

Start the proyect with Yarn or Npm:

yarn start

// or

npm start

Available end-points

GET /reviews

Gets all the reviews.

POST /reviews

Creates a review (be sure you are sending the headers via your library).

Headers

Content-Type : application/json

Request body (raw)

{
    "name": "Roy Vargas",
    "rating": "2",
    "date": "10/11/2020",
    "comment": "Estos Cinammon Rolls son excelentes."
}

PUT /reviews/:id

Updates a review. The JSON object must be passed in the request body.

Headers

Content-Type : application/json

Request body (raw)

{
    "name": "Roy Vargas",
    "rating": "2",
    "date": "10/11/2020",
    "comment": "Estos Cinammon Rolls son excelentes."
}

DELETE /reviews/:id

Removes an review given its id.

Authors

  • Leonel Vega

  • Roy Vargas

About

Basic REST API server, stores reviews using JSON as DB

review-server.herokuapp.com/

Resources

Readme
GPL-3.0 license
Activity

Stars

3 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.