Generated by Node Project Generator.
A playground for Express Gateway and Docker.
$ git clone https://github.com/robertoachar/docker-express-gateway.git
$ cd heroes
$ npm install
$ cd ..
$ cd movies
$ npm install
$ cd ..
$ cd gateway
$ npm install
$ cd ..
Action |
Usage |
Starting development mode |
npm start |
Linting code |
npm run lint |
Method |
Endpoint |
Description |
GET |
/api/heroes |
Retrieves a list of heroes |
POST |
/api/heroes |
Retrieves a specific hero |
GET |
/api/heroes/:id |
Creates a new hero |
PUT |
/api/heroes/:id |
Updates hero |
DELETE |
/api/heroes/:id |
Deletes hero |
Method |
Endpoint |
Description |
GET |
/api/movies |
Retrieves a list of movies |
POST |
/api/movies |
Retrieves a specific movie |
GET |
/api/movies/:id |
Creates a new movie |
PUT |
/api/movies/:id |
Updates movie |
DELETE |
/api/movies/:id |
Deletes movie |
- postman/docker-express-gateway.postman.json
Roberto Achar
MIT