lqs
d20566fe07
Some checks failed
Test / lint (push) Has been cancelled
Test / test (pydantic-v1, 3.10) (push) Has been cancelled
Test / test (pydantic-v1, 3.11) (push) Has been cancelled
Test / test (pydantic-v1, 3.12) (push) Has been cancelled
Test / test (pydantic-v1, 3.8) (push) Has been cancelled
Test / test (pydantic-v1, 3.9) (push) Has been cancelled
Test / test (pydantic-v2, 3.10) (push) Has been cancelled
Test / test (pydantic-v2, 3.11) (push) Has been cancelled
Test / test (pydantic-v2, 3.12) (push) Has been cancelled
Test / test (pydantic-v2, 3.8) (push) Has been cancelled
Test / test (pydantic-v2, 3.9) (push) Has been cancelled
Test / coverage-combine (push) Has been cancelled
Test / check (push) Has been cancelled
Issue Manager / issue-manager (push) Has been cancelled
Label Approved / label-approved (push) Has been cancelled
39 lines
805 B
Python
39 lines
805 B
Python
from fastapi import FastAPI
|
|
|
|
description = """
|
|
ChimichangApp API helps you do awesome stuff. 🚀
|
|
|
|
## Items
|
|
|
|
You can **read items**.
|
|
|
|
## Users
|
|
|
|
You will be able to:
|
|
|
|
* **Create users** (_not implemented_).
|
|
* **Read users** (_not implemented_).
|
|
"""
|
|
|
|
app = FastAPI(
|
|
title="ChimichangApp",
|
|
description=description,
|
|
summary="Deadpool's favorite app. Nuff said.",
|
|
version="0.0.1",
|
|
terms_of_service="http://example.com/terms/",
|
|
contact={
|
|
"name": "Deadpoolio the Amazing",
|
|
"url": "http://x-force.example.com/contact/",
|
|
"email": "dp@x-force.example.com",
|
|
},
|
|
license_info={
|
|
"name": "Apache 2.0",
|
|
"url": "https://www.apache.org/licenses/LICENSE-2.0.html",
|
|
},
|
|
)
|
|
|
|
|
|
@app.get("/items/")
|
|
async def read_items():
|
|
return [{"name": "Katana"}]
|