JS-Applications-HTTP-and-REST-Services-Lab
JS-Applications-HTTP-and-REST-Services-Lab
Problems for in-class lab for the "JavaScript Applications" course @ SoftUni.
1. REST Countries
NOTE: Install "Postman" REST Client to ease your tasks.
Your first task is to get detailed information about Bulgaria.
Send a "GET" request to the link given below.
Copy the response in JSON format.
REQUEST:
https://restcountries.com/v2/name/Bulgaria
RESPONSE:
© SoftUni – https://softuni.org. Copyrighted document. Unauthorized copy, reproduction or use is not permitted.
Follow us: Page 1 of 2
3. Github: Create Issue
This time we have to create an issue (data should be send to the server). Send a "POST" request to the
server with the following JSON as body (send it as application/json):
You need to use your GitHub account credentials to submit issues. Under the Authorization tab, select
Basic and enter your username and password. Send the request to the URI from the previous task, but
without the :id.
© SoftUni – https://softuni.org. Copyrighted document. Unauthorized copy, reproduction or use is not permitted.
Follow us: Page 2 of 2