Skip to content

JackChilds/Mock-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Quickly create Mock API responses and deploy them to Vercel.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published