Simple Hello world API using FastAPI hosted on deta
There are 5 endpoints
-
/
or root - shows this as an html page -
/hello
returnshello world
as a json object -
/items
returns an array of json objects which are items -
item/?item_id=P004
returs a an array of items matchingitem_id
-
/env
returns the environment variables set indeta.json
as a json object
To deploy it to a deta micro push