Skip to content

Commit

Permalink
Address three minor typos in the JSON and APIs guide. (phoenixframewo…
Browse files Browse the repository at this point in the history
…rk#5485)

Co-authored-by: Jon Hayden <[email protected]>
  • Loading branch information
jhayden and jonhayden authored Jun 6, 2023
1 parent a6c37a5 commit 673f739
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guides/json_and_apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ We will break those files into four categories:
* Files in `priv/repo/migrations` responsible for updating our database
* Files in `test` to test our controllers and contexts

In this guide, we will explore only the first category of files. To learn more about how Phoenix stores and manage data, check out [the Ecto guide](ecto.md) and [the Contexts guide](contexts.md) for more information. We also have a whole section dedicating on testing.
In this guide, we will explore only the first category of files. To learn more about how Phoenix stores and manage data, check out [the Ecto guide](ecto.md) and [the Contexts guide](contexts.md) for more information. We also have a whole section dedicated to testing.

At the end, the generator asks us to add the `/url` resource to our `:api` scope in `lib/hello_web/router.ex`:

Expand Down Expand Up @@ -103,7 +103,7 @@ Now we can retrieve all links:
curl -i http://localhost:4000/api/urls
```

Or we can just retrieve a link it's `id`:
Or we can just retrieve a link by its `id`:

```console
curl -i http://localhost:4000/api/urls/1
Expand All @@ -117,7 +117,7 @@ curl -iX PUT http://localhost:4000/api/urls/2 \
-d '{"url": {"title":"Elixir Programming Language"}}'
```

The response should be a `200` with the update link in the body.
The response should be a `200` with the updated link in the body.

Finally, we need to try out the removal of a link:

Expand Down

0 comments on commit 673f739

Please sign in to comment.