This example is based on this tutorial
I have simplified the example using a local MongoDB installation and changing bears for alumnos.
- Node and npm
- Clone the repo
- Install dependencies:
npm install - Start the server:
node server.js
Test your API using Postman
URIs:
GET http://localhost:3000/api/alumnos
GET http://localhost:3000/api/alumnos/:id
POST http://localhost:3000/api/alumnos
PUT http://localhost:3000/api/alumnos/:id
DELETE http://localhost:3000/api/alumnos/:id