Skip to content

Commit 680dfcf

Browse files
committed
fix joke api call to only call correct joke format
1 parent 05485be commit 680dfcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reading/apis.livemd

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ APIs commonly return a JSON response. For example, here we make a request to a J
316316

317317
```elixir
318318
response =
319-
Finch.build(:get, "https://v2.jokeapi.dev/joke/Any?safe-mode&format=json")
319+
Finch.build(:get, "https://v2.jokeapi.dev/joke/Any?safe-mode&type=single&format=json")
320320
|> Finch.request!(MyApp.Finch)
321321
```
322322

0 commit comments

Comments
 (0)