0.0.23 • Published 4 months ago

protochicken v0.0.23

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

What is Protochicken?

Protochicken is a powerful command-line tool designed to expedite the process of mocking RESTful APIs effortlessly. It seamlessly integrates OpenAPI schemas, enhancing the speed and efficiency of API development.

What Can Protochicken Do?

mock_service Mock a RESTful API service quickly

mock_new_services Mock new services in existing architecture

link_services Link existing services without any development time.

prototype_architecture Prototype your entire backend by chaining multiple protochicken services.

Protochicken empowers developers to:

  • Mock RESTful APIs: Quickly create mock APIs from OpenAPI schemas.
  • Customize HTTP Status Codes: Return different HTTP status codes for any endpoint in your contract using the status= query parameter.
  • Introduce Delays: Simulate slow network conditions by adding artificial delays to responses with the delay= query parameter.

Installing Protochicken

You can easily install Protochicken by running the following command:

npm install -g protochicken

Get up and running by downloading one of our Example Contracts and then running:

npx protochicken [DOWNLOADED_CONTRACT_LOCATION]

Using Protochicken

Get started with Protochicken by running the following command, replacing OPENAPI_CONTRACT_LOCATION with the location of your OpenAPI contract:

protochicken [OPENAPI_CONTRACT_LOCATION]

Returning Different HTTP Status Codes

You can customize the HTTP status code returned from any endpoint in your contract. Simply include the status= query parameter in your request with the desired status code.

Returning with Delays

Protochicken allows you to introduce delays to your responses, simulating slow network conditions. To add a delay, include the delay= query parameter in your request, specifying the delay time in milliseconds. This feature is particularly useful for testing under adverse network conditions.

Feel free to explore Protochicken's capabilities and make your API development process more efficient and flexible. 🚀

Added Recently

MULTIPLE servers chainng redirect url postman tests

Coming Soon

Chain specific data

0.0.23

4 months ago

0.0.20

8 months ago

0.0.21

8 months ago

0.0.22

8 months ago

0.0.16

8 months ago

0.0.17

8 months ago

0.0.18

8 months ago

0.0.19

8 months ago

0.0.15

8 months ago

0.0.13

8 months ago

0.0.12

8 months ago

0.0.11

8 months ago

0.0.10

8 months ago

0.0.9

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

1.0.0

8 months ago