Skip to content

This is a dummy API using https://my-json-server.typicode.com/ , to cater for dev modules of the autoradio project by Radio FRO, Freies Radio Freistadt, Radio Helsinki and Radio Orange

Notifications You must be signed in to change notification settings

jackieklaura/autoradio-steering-api-dummy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

autoradio-steering-api-dummy

This is a dummy API catering to dev modules of the autoradio project by Radio FRO, Freies Radio Freistadt, Radio Helsinki and Radio Orange. It uses the JSON Server to provide an API based on the db-extended.json file in this repository.

Setup

All you need is the JSON Server, which should be easily set up with:

$ npm install -g json-server

Then grab this repo use the following command to start the JSON Server in read-only mode:

$ json-server --ro --watch --routes routes.json db-extended.json

If you also want to be able to write to the database through the API, then leave out the --ro option.

Notes on the db.json file

The db.json file is a reduced test data sample one could use with my-json-server by typicode. But this does not actually work out nicely. There is a limitation of <10k for the whole databases. Beyond that also only 5 fields are permitted per entry, which is not very useful for our test cases.

So in future commits we'll get rid of this file and move our db-extended.json into its place.

About

This is a dummy API using https://my-json-server.typicode.com/ , to cater for dev modules of the autoradio project by Radio FRO, Freies Radio Freistadt, Radio Helsinki and Radio Orange

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published