Add response model for sondelist
This commit is contained in:
parent
97c7ab970c
commit
cb5af32b6a
|
@ -66,7 +66,7 @@ def post_sonde(sonde: schemas.SondeBase, db: Session = Depends(get_db)):
|
|||
return list(sondes.values())
|
||||
|
||||
|
||||
@app.get("/sonde/")
|
||||
@app.get("/sonde/", response_model=List[schemas.SondeBase])
|
||||
def list_sonde():
|
||||
return [x for x in sondes.values()]
|
||||
|
||||
|
|
Loading…
Reference in New Issue