Skip to content

Commit fbfe9be

Browse files
committed
Update API Workshop documentation to clarify prerequisites for testing consume.py
1 parent 60f8f69 commit fbfe9be

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/content/docs/guides/py/api_workshop.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,12 +621,15 @@ else:
621621
This script sends a GET request to the `/employees` endpoint and prints the list of employees if the request is successful.
622622

623623
</Card>
624-
<Aside type="note">
625-
You can either run your original `host.py` script by pressing `+` to open a new terminal in VS Code or try out the hosted API Playground to test this script out `http://magic.magic-ug.org:10500/` with the `/employees` endpoint and `/departments` endpoint.
626-
</Aside>
627624

628625
<Card>
629626
### Testing `consume.py`
627+
<Aside type="danger">
628+
Before testing `consume.py` your original `host.py` script should be running.
629+
630+
Press the `+` to open a new terminal in VS Code.
631+
</Aside>
632+
630633
```shell
631634
python3 consume.py
632635
```

0 commit comments

Comments
 (0)