Skip to content

anujthedevopsguy/todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Health Check

Request: curl http://127.0.0.1:8000/health

Response: { "message": "Instance is healthy" }

Add Todo:

Request: curl -X 'POST'
'http://127.0.0.1:8000/todos'
-H 'Content-Type: application/json'
-d '{"task": "Buy milk"}'

Response: { "message": "Task added successfully" }

GetTodos:

Request: curl http://127.0.0.1:8000/todos

Response: [ {"task": "Buy milk"} ]


UI: Access the web interface at http://localhost:8000/.

Health: Check app health at http://localhost:8000/health.

Metrics: View Prometheus metrics at http://localhost:8000/metrics.

Run Application: uvicorn todo_app:app --reload

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published