Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Latest commit

 

History

History
32 lines (18 loc) · 1.05 KB

README.md

File metadata and controls

32 lines (18 loc) · 1.05 KB

⚠️ Deprecation notice

This package was a workaround solution to be able to consume HTTP-POST APIs, such as GraphQL ones, through Witnet. To be able to consume POST APIs without sacrificing decentralization, the WIP-2020 was proposed and activated. You can learn more about how to get data using HTTP-POST in the Witnet documentation.

http-post-adapter

HTTP service that makes an HTTP-POST request with the arguments given.

Configurable environment variables

PORT

Default: 3000

Port where the server will be listening.

RATE_LIMIT_DURATION

Default: 1

Number of seconds before reset the number of requests.

REQUEST_PER_DURATION

Default: 3

Maximum number of request can be done over RATE_LIMIT_DURATION.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT