https://github.com/tpiros/easy-api
https://github.com/tpiros/easy-api
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tpiros/easy-api
- Owner: tpiros
- Created: 2018-05-15T09:17:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T15:21:03.000Z (over 2 years ago)
- Last Synced: 2025-02-12T21:44:47.926Z (4 months ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Easy API
An API that you can fire up anytime to do quick tests.
## Routes
* `/api/products` - [GET] - lists all products
* `/api/products/:id` - [GET] - list one specific prdocut
* `/api/products` - [POST] - add new product
* `/api/products/:id` - [PUT] - updates a product
* `/api/products/:id` - [DELETE] - deletes a product## Setup
`npm i`## Run
`npm run`By default the API starts up on port 3000. Edit `app.js` to change this.