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. (by Ovi)

DummyJSON Alternatives

Similar projects and alternatives to DummyJSON

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better DummyJSON alternative or higher similarity.

DummyJSON reviews and mentions

Posts with mentions or reviews of DummyJSON. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-17.
  • Next Auth boilerplate TS
    2 projects | dev.to | 17 Apr 2024
    # next auth secret created by open ssl NEXTAUTH_SECRET=8xvug0aweP+j06DbfOLH9fAU7Bf2nLBLnYHQiFPB9Pc= #local NEXTAUTH_URL="http://localhost:3000" NEXT_PUBLIC_API_URL="https://dummyjson.com" # deveploment NEXTAUTH_DEBUG=true
  • Integrating GraphQL Codegen + React Query + Clerk JWT Tokens
    2 projects | dev.to | 3 Apr 2024
    import { useAuth } from "@clerk/nextjs"; import axios, { AxiosError, isAxiosError } from "axios"; interface GraphQLResponse { data: T; errors?: { message: string }[]; } export const useFetchGraphQLData = ( query: string ): ((variables?: TVariables) => Promise) => { const { getToken } = useAuth(); const url = "https://dummyjson.com"; // Replace this with your GraphQL API URL return async (variables?: TVariables) => { const token = await getToken(); try { const response = await axios.post>( url, { query, variables, }, { headers: { "Content-Type": "application/json", Authorization: token ? `Bearer ${token}` : "", }, } ); if (response.data.errors) { throw new Error(response.data.errors[0].message); } return response.data.data; } catch (error) { if (isAxiosError(error)) { const serverError = error as AxiosError>; if (serverError && serverError.response) { const errorMessage = serverError.response.data.errors?.[0]?.message || "Error in GraphQL request"; throw new Error(errorMessage); } } throw error; } }; };
  • looking for resource site for GET-POST practice (html)
    3 projects | /r/learnprogramming | 9 Dec 2023
    DummyJSON is a set of endpoints you can use to try out different requests without using a commercial API which may or may not ban you or limit your access..
  • UI for fake REST API challenge. How would you rate my skills?
    2 projects | /r/vuejs | 8 Jun 2023
    This particular interface was built around https://dummyjson.com/ fake REST API.
  • What are some of the simplest web applications and/or API's out there that are popular
    1 project | /r/webdev | 28 May 2023
    https://dummyjson.com has a few good endpoints for building out basic apps.
  • Web service
    2 projects | /r/programacion | 8 May 2023
    Buenas te dejo algunas que conozco https://dummyjson.com/ https://www.jsonapi.co/public-api https://github.com/public-apis/public-apis
  • Spacetraders is an online multiplayer game based entirely on APIs. You have to build your own management and UI on your own with any programming language.
    4 projects | /r/programming | 8 May 2023
    I've been using https://dummyjson.com/ to prototype my Web Components, but this probably works better.
  • Create a Shopping Cart with Vuejs and Pinia
    6 projects | dev.to | 19 Apr 2023
    I will use DummyJSON, to get dummy/fake JSON data to use as placeholder in development and prototyping, without worrying about writing a backend.
  • Authentication in Nextjs
    2 projects | dev.to | 13 Apr 2023
    import { NextPage } from 'next' import { useState } from 'react' import { setCookie } from 'cookies-next' import { useRouter } from 'next/router' import { useAuthStore } from '~/store/useAuthStore' // import our useAuthStore const SignIn: NextPage = (props) => { // set UserInfo state with inital values const [userInfo] = useState({ email: 'kminchelle', password: '0lelplR' }) const router = useRouter() // import state from AuthStore const setUser = useAuthStore((state) => state.setUser) const setAuthentication = useAuthStore((state) => state.setAuthentication) const login = async () => { // do a post call to the auth endpoint const res = await fetch('https://dummyjson.com/auth/login', { method: 'post', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ username: userInfo.email, password: userInfo.password, }), }) // check if response was ok if (!res.ok) { return console.error(res) } // retrieve data from the response const data = await res.json() // check if we have data if (data) { setUser(data) // set data to our user state setAuthentication(true) // set our authentication state to true setCookie('token', data?.token) // set token to the cookie router.push('/') // redirect to home page } } return (

    Login

    Username (userInfo.email = event.target.value)} required /> Password (userInfo.password = event.target.value)} name="psw" required /> Login
    ) } export default SignIn
  • Serverless API Deployment with AWS Lambda and API Gateway
    1 project | dev.to | 26 Feb 2023
    import json import requests def lambda_handler(event, context): base_url = 'https://dummyjson.com/' product_id = '1' resp = requests.get(url=base_url+'products/'+product_id) if resp.status_code != 200: raise Exception('Failed to retrieve product: '+resp.text) return { 'statusCode': resp.status_code, 'body': resp.json() } Q. what this code does? 1.Imports the necessary modules (JSON and requests). 2.Defines a base URL and a product ID that will be used to construct the API URL. 3.Sends a GET request to the API using the requests library, passing in the full API URL. 4.Checks the response status code to make sure that the request was successful (status code 200). 5.If the response status code is not 200, raise an exception with an error message that includes the response text. 6.If the response status code is 200, return a dictionary containing the response status code and the parsed JSON response body. ●Test the function.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 10 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic DummyJSON repo stats
21
1,327
7.2
18 days ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com