Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lykalabrada/cinema-key-value-store
An API application made with NodeJS Express
https://github.com/lykalabrada/cinema-key-value-store
api mongodb nodejs-express
Last synced: 10 days ago
JSON representation
An API application made with NodeJS Express
- Host: GitHub
- URL: https://github.com/lykalabrada/cinema-key-value-store
- Owner: lykalabrada
- Created: 2019-01-09T01:21:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-09T01:48:31.000Z (almost 6 years ago)
- Last Synced: 2024-12-05T11:07:33.976Z (18 days ago)
- Topics: api, mongodb, nodejs-express
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Movie showing on a Cinema API
## About
This is an API made with _NodeJS Express_ that basically stores a key-value.
Database: _MongoDB_## Methods
### POST
POST new data to https://vault-dragon-test.herokuapp.com/v1/cinema.
Example JSON body: `{ "cinema4":"Aquaman" }`
You can update the current movie of a cinema by sending another POST request using the same key(cinema).### GET
* Get All cinema and movie from https://vault-dragon-test.herokuapp.com/v1/cinema
* Get All recorded data (history) from https://vault-dragon-test.herokuapp.com/v1/cinema/all_history
* Get movie of a specific cinema from `https://vault-dragon-test.herokuapp.com/v1/cinema/`
Example: https://vault-dragon-test.herokuapp.com/v1/cinema/cinema4
* Get movie of a specific cinema and timestamp from `https://vault-dragon-test.herokuapp.com/v1/cinema//`
Example: https://vault-dragon-test.herokuapp.com/v1/cinema/cinema1/1546996439373
## Test
Below are the instructions for running the test in this API locally:
1. Clone this repo.
2. Run `npm start` or `npm run start`
3. Run `npm test` or `npm run test`