Skip to content

Commit

Permalink
fix codeblock
Browse files Browse the repository at this point in the history
  • Loading branch information
beerose committed Feb 19, 2025
1 parent 6b06120 commit ccb4096
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/intro/quickstart/fastapi/working.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -396,13 +399,17 @@ Now, update the card operations to use |Gel| to add cards to a deck:
+
+ return new_card
Deleting linked data
====================

As the next step, update the card deletion operation to use |Gel| to remove a card from a deck:

.. 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()
Expand Down

0 comments on commit ccb4096

Please sign in to comment.