Skip to content

Latest commit

 

History

History
35 lines (32 loc) · 609 Bytes

README.md

File metadata and controls

35 lines (32 loc) · 609 Bytes

Simple FastAPI service

A simple FastAPI service with a single handle.

Usage

  1. Clone or download the repository.
  2. Build the Docker image:
docker build -t simple-fastapi-service .
  1. Run the container with:
docker run -p 80:80 simple-fastapi-service

The server will be running on port 80.
The handle`s address would be http://0.0.0.0:80/deposit/calculate/

Example call

Request json:

{
	"date": "31.01.2021",
	"periods": 3,
	"amount": 10000,
	"rate": 6
}

Response json:

{
	"31.01.2021": 10050.0,
	"28.02.2021": 10100.25,
	"31.03.2021": 10150.75
}