added rest exercise
This commit is contained in:
10
w14_olama/rest.js
Normal file
10
w14_olama/rest.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const url = 'https://swapi.info/api/people/1';
|
||||
|
||||
const options = {
|
||||
method: 'GET',
|
||||
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user