diff --git a/docs/intro/quickstart/fastapi/working.rst b/docs/intro/quickstart/fastapi/working.rst index 6603288163c..40b23e19252 100644 --- a/docs/intro/quickstart/fastapi/working.rst +++ b/docs/intro/quickstart/fastapi/working.rst @@ -348,6 +348,9 @@ Now, update the card operations to use |Gel| to add cards to a deck: .. edb:split-section:: +.. code-block:: python-diff + :caption: main.py + @app.post("/decks/{deck_id}/cards", response_model=Card) async def add_card(deck_id: UUID, card: CardBase): - decks = read_decks() @@ -396,6 +399,7 @@ Now, update the card operations to use |Gel| to add cards to a deck: + + return new_card + Deleting linked data ==================== @@ -403,6 +407,9 @@ As the next step, update the card deletion operation to use |Gel| to remove a ca .. edb:split-section:: + .. code-block:: python-diff + :caption: main.py + @app.delete("/cards/{card_id}") async def delete_card(card_id: str): - decks = read_decks()