A JSON file RESTful API with authorization based on json-server for zce/weapp-locally & zce/quickapp-locally
# clone repo
$ git clone https://github.com/zce/locally-server.git <my-api-server>
# change directory
$ cd <my-api-server>
# install dependencies
$ yarn # or npm install
modify database.json file
# serve with hot reload at http://localhost:3000
$ yarn dev
- Slides:
/slides/:id?
- Categories:
/categories/:id?
- Shops:
/shops/:id?
To access and modify resources, you can use any HTTP method: GET
POST
PUT
PATCH
DELETE
OPTIONS
add a delay of 1000ms for each endpoint
$ curl http://localhost:3000/backdoor/delay
- zce/dashboard-server - A JSON file RESTful API with JWT authorization based on json-server for zce/dashboard