mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 00:50:30 +00:00
create
This commit is contained in:
parent
e0ecb8c213
commit
42b1602754
7 changed files with 21 additions and 1 deletions
0
CONTRIBUTING.md
Normal file
0
CONTRIBUTING.md
Normal file
|
@ -1,6 +1,8 @@
|
||||||
# StackHub
|
# StackHub
|
||||||
|
|
||||||
StackHub is for opensource stacks automation.
|
本项目开发中...
|
||||||
|
|
||||||
|
StackHub is for opensource stacks automation, it is developing...
|
||||||
|
|
||||||
## Funtction
|
## Funtction
|
||||||
|
|
||||||
|
|
15
api/main.py
Normal file
15
api/main.py
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
|
from fastapi import FastAPI
|
||||||
|
|
||||||
|
app = FastAPI()
|
||||||
|
|
||||||
|
|
||||||
|
@app.get("/")
|
||||||
|
def read_root():
|
||||||
|
return {"Hello": "World"}
|
||||||
|
|
||||||
|
|
||||||
|
@app.get("/items/{item_id}")
|
||||||
|
def read_item(item_id: int, q: Optional[str] = None):
|
||||||
|
return {"item_id": item_id, "q": q}
|
0
cli/README.md
Normal file
0
cli/README.md
Normal file
3
docs/PRD
Normal file
3
docs/PRD
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
架构:后台JS框架+后端Python提供API服务
|
||||||
|
|
||||||
|
后端:Python, Docker, Docker-compose, FastAPI, Typer
|
0
tests/README.md
Normal file
0
tests/README.md
Normal file
Loading…
Reference in a new issue