Skip to content

This repo is an answer for json-server's issue number 433

Notifications You must be signed in to change notification settings

Nilegfx/json-server-answer-433

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The purpose

This repo is in response to json-server's issue 433

Installation

do the following (in sequence)

git clone https://github.com/Nilegfx/json-server-answer-433.git
cd json-server-answer-433

do this step if you want to use express json-server options

npm install

Usage

Using http (simple and super lite http server)

Recommended if you don't have any other use cases as it doesn't require any external library

node http

Using Express

still simple server but not "super" lite server

node express

Make a request

using browser/tool

http://localhost:3000/something?min=20161201&max=20161208

with curl

 curl http://localhost:3000/something?min=20161201&max=20161208
  • only one parameter required (either min or max)
  • default for min if not send is 1
  • default for max if not send is 90000000

About

This repo is an answer for json-server's issue number 433

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published