Skip to main content

LocalStack Extension: httpbin

Project description

LocalStack httpbin extension

A simple HTTP Request & Response Service directly in LocalStack using httpbin. Get the full httpbin experience directly in LocalStack without connecting to httpbin.org!

The httpbin API is served through the hostname http://httpbin.localhost.localstack.cloud:4566.

Install

Install the extension by running:

localstack extensions install localstack-extension-httpbin

Usage

Opening http://httpbin.localhost.localstack.cloud:4566 in the browser will show you the flasgger UI: Screenshot at 2023-07-27 14-33-03

And you can call the API endpoints just as you would httpbin.org. Screenshot at 2023-07-27 14-34-15

Development

Install local development version

To install the extension into localstack in developer mode, you will need Python 3.10, and create a virtual environment in the extensions project.

In the newly generated project, simply run

make install

Then, to enable the extension for LocalStack, run

localstack extensions dev enable .

You can then start LocalStack with EXTENSION_DEV_MODE=1 to load all enabled extensions:

EXTENSION_DEV_MODE=1 localstack start

Licensing

  • httpbin is licensed under the ISC license: https://github.com/postmanlabs/httpbin/blob/master/LICENSE
  • The httpbin source code is vendored with this extension, slight modifications were made to make it compatible with the latest Python and Werkzeug version. The modifications retain the ISC license
  • The extension code is licensed under the Apache 2.0 License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

localstack-extension-httpbin-0.1.0.dev2.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file localstack-extension-httpbin-0.1.0.dev2.tar.gz.

File metadata

File hashes

Hashes for localstack-extension-httpbin-0.1.0.dev2.tar.gz
Algorithm Hash digest
SHA256 3aa85a4dfbcaee21a983435e675c0640d739570de5d1290de92689d330438d90
MD5 ae04cd104afdc8996432aaf0a2d41171
BLAKE2b-256 fc47f3cb9848a9e2233592def36168b94c511873de0d53b09bde439babe7fec4

See more details on using hashes here.

File details

Details for the file localstack_extension_httpbin-0.1.0.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for localstack_extension_httpbin-0.1.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 5359d9714cb0408e50e2a362dcc06738c3d69a4a95a3de0c94a328e00bca39a6
MD5 ee36ed845dcd62a2c890612859411187
BLAKE2b-256 9fac0bde25112db006e065dbec5edba3dfccba10675798a214178ec581fd4a00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page