Giter Site home page Giter Site logo

tanchonglim / mock-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jackchilds/mock-api

0.0 0.0 0.0 473 KB

Quickly create Mock API responses and deploy them to Vercel.

Home Page: https://mock-api-example.vercel.app

License: MIT License

JavaScript 64.06% CSS 1.04% HTML 34.91%

mock-api's Introduction

Mock-API

Quickly create Mock API responses and deploy them to Vercel.

Why use Mock API?

  • Use your Mock API from anywhere because it is hosted online
  • Uses serverless technologies so it can be deployed to Vercel for free
  • Easy to navigate UI
  • Built in GitHub integration
  • Extendable functionality through processors

Demo | Original Repository

Installation

  1. Fork this repository to your own account
  2. Deploy the forked project to Vercel
  3. Navigate to the deployment URL in your browser
  4. Follow the onscreen prompt to integrate with you GitHub account
  5. Done!

Default Configuration

The configuration contains some example endpoints, you can view these by navigating to the dashboard and opening the server configuration or by referencing below.

  • api/test:
    • Methods
      • GET
      • POST
      • PUT
      • DELETE
      • PATCH
    • Response
      • { "message": "It works!" }
    • Demo
  • api/example/processor
  • api/example/processor2
    • GET
    • Requires a 'name' parameter to be sent
    • Uses the example2.mjs processor to produce a response
    • Demo
  • api/example/redirect

Advanced Usage

Custom Processors: See the custom processors guide README.

mock-api's People

Contributors

jackchilds 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.