GithubHelp home page GithubHelp logo

mandorakannu / api-ninja-hub-next Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.41 MB

A simple online fake REST API server

Home Page: https://api.mandorakannu.tech

License: MIT License

CSS 1.46% TypeScript 97.57% JavaScript 0.96%
api api-rest custom-data fake fake-data json-api online rest api-end axios-react

api-ninja-hub-next's Introduction

API Ninja Hub

API Ninja Hub is a REST API that provides fake data for testing and prototyping. It is a free to use service that provides a REST API to generate random and mock data without any restrictions. It provides endpoints for generating random user data, random data for posts, todos, comments, and much more.

Why, You need to use this API ?

As a front-end developer, it can be challenging to source data when creating applications or websites. Traditional methods often involve relying on the backend or using hard-coded data, which can limit possibilities. Recently, I encountered similar difficulties and desired a more efficient solution.

My API NINJA HUB get response without server restrication so, developer can easily access any kind to data without hesistation.

Features

  • Zero-configuration
  • Basic and Advanced API
  • Resources relationships
  • 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, PHP, etc.

Installation

This is an API so you should directly fetch any type of data.

  fetch('https://api.mandorakannu.xyz/api/users')
  .then(res => res.json())
  .then(json => console.log(json));  

OR

Use of async await function

const getUsers = async ()=> {
 const response = await fetch("https://api.mandorakannu.xyz/api/users");
 const data = await response.json();
 return data;
}

OR

Use of async await function by Axios

const getUsers = async ()=> {
 const response = await axios.get("https://api.mandorakannu.xyz/api/users");
 return response.data;
}

Documentation

Official Website

API Reference

GET /api/users ====> https://api.mandorakannu.xyz/api/users/

GET /api/posts ====> https://api.mandorakannu.xyz/api/posts/

GET /api/todos ====> https://api.mandorakannu.xyz/api/todos/

GET /api/comments ====> https://api.mandorakannu.xyz/api/comments/

GET /api/albums ====> https://api.mandorakannu.xyz/api/albums/

GET /api/photos ====> https://api.mandorakannu.xyz/api/photos/

GET /api/products ====> https://api.mandorakannu.xyz/api/products/

Get all users

  GET /api/users
Parameter Type Description
null JSON Fetch all users

Get only one user

  GET /api/users/${id}
Parameter Type Description
id string Required. Id of user to fetch

Get all posts

  GET /api/posts/
Parameter Type Description
null string Fetch all posts

Get only one post

  GET /api/posts/${id}
Parameter Type Description
id string Required. Id of post to fetch

Get all todos

  GET /api/todos/
Parameter Type Description
null string Fetch all todos

Get only one todo

  GET /api/todos/${id}
Parameter Type Description
id string Required. Id of todo to fetch

Get all comments

  GET /api/comments/
Parameter Type Description
null string Fetch all comments

Get only one comment

  GET /api/comments/${id}
Parameter Type Description
id string Required. Id of comment to fetch

Get all albums

  GET /api/albums/
Parameter Type Description
null string Fetch all albums

Get only one album

  GET /api/albums/${id}
Parameter Type Description
id string Required. Id of album to fetch

Get all photos

  GET /api/photos/
Parameter Type Description
null string Fetch all photos

Get only one photo

  GET /api/photos/${id}
Parameter Type Description
id string Required. Id of photos to fetch

Get all products

  GET /api/products/
Parameter Type Description
null string Fetch all products

Get only one product

  GET /api/products/${id}
Parameter Type Description
id string Required. Id of product to fetch

Tech Stack

Client: Tailwindcss, React.Js & Next.Js

Server: Node, Serverless Next.Js Server

Support

For support, email [email protected] or join follow me on GitHub.

Environment Variables

To run this project, You don't need to add any API_KEY or other stuffs.

API_KEY โŒ

ANOTHER_API_KEY โŒ

License

MIT

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

Authors

Feedback

If you have any feedback, please reach out to us at [email protected]

api-ninja-hub-next's People

Contributors

mandorakannu avatar

Stargazers

 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.