Skip to content

dilleyrd/api1_ping_echo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Starter — Ping and Echo

Quickstart

  1. Create and activate a virtual environment.
  2. pip install -r requirements.txt
  3. uvicorn main:app --reload
  4. Visit http://localhost:8000/ping. Use a REST client to POST to /echo.

Endpoints

  • GET /ping -> {"status":"ok"}
  • POST /echo with JSON { "message": "hello" } -> echoes back the message

About

FastAPI basics and your first JSON endpoint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages