Skip to content

Commit

Permalink
Merge pull request #76 from tecladocode/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jslvtr authored Oct 3, 2022
2 parents c43506a + 1fd9108 commit 8f938dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions project/01-first-rest-api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def create_item():

@app.get("/item")
def get_all_items():
return {"items": list(items.value())}
return {"items": list(items.values())}


@app.get("/store/<string:id>")
Expand All @@ -54,4 +54,4 @@ def create_store():

@app.get("/store")
def get_stores():
return {"stores": list(stores.value())}
return {"stores": list(stores.values())}
4 changes: 2 additions & 2 deletions project/02-first-rest-api-docker/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def create_item():

@app.get("/item")
def get_all_items():
return {"items": list(items.value())}
return {"items": list(items.values())}


@app.get("/store/<string:id>")
Expand All @@ -54,4 +54,4 @@ def create_store():

@app.get("/store")
def get_stores():
return {"stores": list(stores.value())}
return {"stores": list(stores.values())}

0 comments on commit 8f938dc

Please sign in to comment.