Skip to content

bijaydas/jsonfaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Faker

JSON Faker is fake rest API for testing.

While building websites or mobile applications developers need some fake data to test their apps. JSON Faker gives you a sample data to test.

How to use

Resources

Resource Path
Users /users
Comments /comments
Images /images
Todos /todos

All routes available

Method Path
GET /users
GET /users/:user_id
GET /comments
GET /comments?comment_id=:comment_id
GET /comments?user_id=:user_id
GET /comments?user_id=:user_id&comment_id=:comment_id
GET /images
GET /images?image_id=:image_id
GET /images?user_id=:user_id
GET /images?user_id=:user_id&image_id=:image_id
GET /todos
GET /todos?todo_id=:todo_id
GET /todos?user_id=:user_id
GET /todos?user_id=:user_id&todo_id=:todo_id

How to use

curl https://jsonfaker.herokuapp.com/users

If you want to set up your own server

$ git clone [email protected]:bijaydas/jsonfaker.git
$ cd jsonfaker
$ npm install
$ npm start

Contributing

This is the basic version of the applcation and requires a lot of work. If you are interested in contributing just contribute.