Skip to content

devcrypted/demo-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Demo Task Manager

Just a demo API built in FastAPI

Installation

git clone https://github.com/devcrypted/demo-fastapi.git
cd demo-fastapi
pip install -r requirements.txt

Running the Application

uvicorn main:app --reload

Navigate to http://localhost:8000/docs to view the Swagger UI where you can interact with the API.

Using Docker

Build the Docker image:

docker build -t fastapi-task-manager .

Run the Docker container:

docker run -p 8080:80 fastapi-task-manager

Now you can access the application at http://localhost:8080/docs.

API Endpoints

  • POST /: Create a new task
  • GET /: Retrieve all tasks
  • GET /{task_id}: Retrieve a task by its ID
  • PUT /{task_id}: Update a task by its ID
  • DELETE /{task_id}: Delete a task by its ID

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published