From ef3d5fda7ff2f7039873800f7a3010a224da73b0 Mon Sep 17 00:00:00 2001 From: piuswong-multiverse <111539998+piuswong-multiverse@users.noreply.github.com> Date: Thu, 2 Feb 2023 12:18:48 -0600 Subject: [PATCH 1/2] Revise example call to match API --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 476441b..a2a566e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A Jokes API with jokes searchable via query parameters Example call: ```sh -$ curl -H "Accept: application/json" "http://localhost:4000/search?term=hipster&limit=2" +$ curl -H "Accept: application/json" "http://localhost:4000/jokes?term=hipster&limit=2" ``` Example response From a6317f660072943492a93483438b4b060d057fa8 Mon Sep 17 00:00:00 2001 From: piuswong-multiverse <111539998+piuswong-multiverse@users.noreply.github.com> Date: Thu, 2 Feb 2023 12:37:50 -0600 Subject: [PATCH 2/2] Revise example call query parameter to match API code --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a2a566e..5560f57 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A Jokes API with jokes searchable via query parameters Example call: ```sh -$ curl -H "Accept: application/json" "http://localhost:4000/jokes?term=hipster&limit=2" +$ curl -H "Accept: application/json" "http://localhost:4000/jokes?content=hipster&limit=2" ``` Example response