Skip to content

Commit d8ed83d

Browse files
authored
Ch12 - switch to jsonplaceholder (#247)
1 parent 967022f commit d8ed83d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

exercises/chapter12/test/Main.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ outDir = Path.concat [ "test", "data-out" ]
3636
reqUrl :: String
3737
reqUrl =
3838
-- Both http and https work for this API endpoint.
39-
"https://reqres.in/api/users/1"
39+
"https://jsonplaceholder.typicode.com/todos/1"
4040
-- If you want or need to use the http version (not the https), just
4141
-- remove the 's' from `https://`:
42-
--"http://reqres.in/api/users/1"
42+
--"http://jsonplaceholder.typicode.com/todos/1"
4343
-- Use this url for the http-server solution:
4444
--"http://localhost:42524/user.txt"
4545

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
{"data":{"id":1,"email":"[email protected]","first_name":"George","last_name":"Bluth","avatar":"https://s3.amazonaws.com/uifaces/faces/twitter/calebogden/128.jpg"},"support":{"url":"https://reqres.in/#support-heading","text":"To keep ReqRes free, contributions towards server costs are appreciated!"}}
1+
{
2+
"userId": 1,
3+
"id": 1,
4+
"title": "delectus aut autem",
5+
"completed": false
6+
}

0 commit comments

Comments
 (0)