Giter Site home page Giter Site logo

rasata / dummyjson Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ovi/dummyjson

0.0 1.0 0.0 8.32 MB

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.

Home Page: http://dummyjson.com

License: Other

JavaScript 30.77% EJS 57.00% SCSS 12.22%

dummyjson's Introduction

Uptime Robot status โ€‚ Uptime 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/

dummyjson's People

Contributors

ovi avatar erik-j-d avatar hmdshfq avatar rifaldhiaw avatar shubhanshu2000 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.