Skip to content

Commit 2f1c8dd

Browse files
Fix formatting of important note in endpoint documentation, update links to reference format.
1 parent a7e9305 commit 2f1c8dd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

content/1-hour/1-add-endpoint.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,16 @@ Let's build our new route in our Flask backend with the help of code completion.
6565
return jsonify(breeds_list)
6666
```
6767

68-
> [!IMPORTANT]
69-
> Because LLMs are probabilistic, not deterministic, the exact code generated can vary. The above is a representative example. If your code is different, that's just fine as long as it works!
68+
> [!IMPORTANT]
69+
> Because LLMs are probabilistic, not deterministic, the exact code generated can vary. The above is a representative example. If your code is different, that's just fine as long as it works!
7070

7171
8. **Save** the file.
7272

7373
## Validate the endpoint
7474

7575
With the code created and saved, let's quickly validate the endpoint to ensure it works.
7676

77-
1. Navigate to [http://localhost:5100/api/breeds](http://localhost:5100/api/breeds) to validate the route. You should see JSON displayed which contains the list of breeds!
77+
1. Navigate to [http://localhost:5100/api/breeds][breeds-endpoint] to validate the route. You should see JSON displayed which contains the list of breeds!
7878

7979
## Summary and next steps
8080

@@ -90,6 +90,7 @@ You've added a new endpoint with the help of GitHub Copilot! You saw how Copilot
9090
| [← Workshop setup][walkthrough-previous] | [Next: Helping GitHub Copilot understand context →][walkthrough-next] |
9191
|:-----------------------------------|------------------------------------------:|
9292

93+
[breeds-endpoint]: http://localhost:5100/api/breeds
9394
[client-code]: /client/
9495
[copilot-suggestions]: https://docs.github.com/en/copilot/using-github-copilot/getting-code-suggestions-in-your-ide-with-github-copilot
9596
[flask-routing]: https://flask.palletsprojects.com/en/stable/quickstart/#routing

0 commit comments

Comments
 (0)