Revize ee2a1529
Přidáno uživatelem Matěj Zeman před asi 3 roky(ů)
server/sql_app/main.py | ||
---|---|---|
21 | 21 |
async def root_post(usb_log: USBLog): |
22 | 22 |
print(usb_log) |
23 | 23 |
return {"message": "Sucess"} |
24 |
|
|
25 |
@app.post("/api/v1/devices/") |
|
26 |
async def root_dev_post(device: Device): |
|
27 |
print(device) |
|
28 |
return {"message": "Sucess"} |
|
24 | 29 |
|
25 | 30 |
@app.get("/") |
26 | 31 |
async def root_read(): |
Také k dispozici: Unified diff
re #9306 Added endpoint for posting Device object.