From 122a6b9b31ccc8ed490a31e65e3f653dd964ad4e Mon Sep 17 00:00:00 2001 From: Andrea Bianchi Date: Wed, 27 May 2026 13:35:22 +0900 Subject: [PATCH] added rest exercise --- w14_olama/rest.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 w14_olama/rest.js diff --git a/w14_olama/rest.js b/w14_olama/rest.js new file mode 100644 index 0000000..3e9d867 --- /dev/null +++ b/w14_olama/rest.js @@ -0,0 +1,10 @@ +const url = 'https://swapi.info/api/people/1'; + +const options = { + method: 'GET', + + headers: { + Accept: 'application/json', + 'Content-Type': 'application/json', + }, +};