rinahafizhah / learn-make-api

Harry Potter API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Learn Express

Make Harry Potter Character API

How to Use

Install dependencies:

yarn

Start server with node:

node index.js

Start with nodemon:

nodemon index.js

Access the endpoints via browser, httpie, or Postman.

API Endpoints

Furnitures:

Route HTTP Verb Description
/characters GET Get all the furnitures
/characters/:id GET Get a single furniture
/characters POST Save a new furniture
/characters/search?q=name GET Search furniture by name
/characters DELETE Remove all the furnitures
/characters/remove/:id DELETE Remove a furniture
/characters/update/:id PATCH Update an item with new info

About

Harry Potter API


Languages

Language:JavaScript 100.0%