Skip to content

dustinur/restfulCrud-DRobertson

Repository files navigation

RESTful CRUD Node Server

RESTful CRUD Node Server for UVU DGM 4790

Heroku URL

Getting Started

Installing and starting server

In terminal, while in project directory and run:

npm install

Start server on default port 4402:

npm start

All CRUD operations done in Postman

Create

  • Choose x-www-form-urlencoded in the Body tab in Postman.
  • Send a POST request to the following url ‘localhost:4402/characters/create’.

Read

  • Send a GET request to url ‘localhost:4402/characters/’ to find all existing characters.
  • Send a GET request to url ‘localhost:4402/characters/CHARACTER_ID’ to find a specific character, switching CHARACTER_ID with chosen character :id.

Update

  • Send an POST request to url ‘localhost:4402/characters/CHARACTER_ID/update’ to update a specific character's attributes by id.

Delete

  • Send a Delete request to url ‘localhost:4402/characters/CHARACTER_ID/delete’ to delete a specific character by id.

About

UVU DGM 4790 - RESTful CRUD Node Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published