Simple Node API sample
To start the application is very simple.
Install dependencies by Node:
$ npm install
or Install dependencies by Yarn:
$ yarn
Start the server:
$ node index.js
- List Artists
- List Artist
- Create Artist
- Update Artist
- Remove Artist
GET /artists/index
http://localhost:3000/artists/
GET /artists/:index
http://localhost:3000/artists/1
DELETE /artists/:index
http://localhost:3000/artists/2
POST /artists
http://localhost:3000/artists/
Request Body
{
"name": "James Blunt"
}
PUT /artists/:index
http://localhost:3000/artists/2
Request Body
{
"name": "Adele Laurie Blue Adkins MBE"
}