Skip to content

sunilsm7/fastapi-http-service

Repository files navigation

FASTAPI HTTP Request & Response Test Service

A fully featured HTTP Request & Response service inspired by httpbin.org, built using FastAPI.

HTTP Request & Response Test Service using FastAPI, with support for:

  • Auth (Basic, Bearer, Digest, JWT)
  • Request/Response inspection
  • Status simulation
  • Encoding (gzip, deflate, etc.)
  • Cookies, redirects, image serving, etc.

Installation

# 1. Clone the repo
$ git clone <repo_url>

$ cd fastapi-http-service

# 2. Install dependencies
$ pip install -r requirements.txt

# 3. Run the app
$ uvicorn main:app --host 0.0.0.0 --port 8000 --reload

Docker

# Build the image
docker build -t fastapi-http-service .

# Run the container
docker run -p 8000:8000 fastapi-http-service

API Docs

FastAPI provides Swagger and ReDoc automatically:


About

HTTP Request & Response Test Service using FastAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published