Skip to content
forked from Ovi/DummyJSON

DummyJSON.com provides different types of REST Endpoints filled with JSON data which you can use in developing the frontend with your favorite framework and library without worrying about writing a backend.

License

Notifications You must be signed in to change notification settings

c4rth/DummyJSON

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uptime Robot statusUptime Robot status

DummyJSON

DummyJSON is a free online REST API that you can use whenever you need some placeholder data for your front-end website or single-page application without running any server-side code. It's awesome for teaching purposes, sample codes, testing, prototyping.

Checkout the detailed docs at DummyJSON/Docs for samples.

Why?

Most of the time when we create a front-end application or website for learning or for client, we have to rely on the backend to implement the front-end or if we want to create a simple learning application we have to use hard-coded data, recently I found myself in need of some data.

I didn't like the idea of using some public API because I had the feeling that I was spending more time registering a client and understanding a complex API than focusing on my task.

So I decided to code a simple backend server that solved my problem, and here's DummyJSON.

You can find it running here and are free to use it in your developments and prototypes: https://dummyjson.com.

I hope you will find it useful.

Features

  • No Sign-up/Registration
  • Zero-configuration
  • Basic and Advanced API
  • Resources relationships
  • Filters and nested resources
  • Supports GET, POST, PUT, PATCH, and DELETE http methods
  • HTTP and HTTPS both works just fine
  • Compatible with React, Angular, Vue, Ember, and vanilla JavaScript

Resources

There are 8 resources available for you:

How to

you can fetch data with any kind of methods you know(fetch API, Axios, jquery ajax,...)

Get all products

fetch('https://dummyjson.com/products')
  .then(res => res.json())
  .then(json => console.log(json));

OR

const res = await fetch('https://dummyjson.com/products');
const json = await res.json();
console.log(json);

Note: Pagination is also supported

See all the routes: https://dummyjson.com/docs/

About

DummyJSON.com provides different types of REST Endpoints filled with JSON data which you can use in developing the frontend with your favorite framework and library without worrying about writing a backend.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • EJS 57.1%
  • JavaScript 30.7%
  • SCSS 12.2%