0% found this document useful (0 votes)
10 views

JS-Applications-HTTP-and-REST-Services-Lab

Uploaded by

Martin Simov
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

JS-Applications-HTTP-and-REST-Services-Lab

Uploaded by

Martin Simov
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Lab: REST Services and AJAX

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:

2. GitHub: Labels Issue


Get the first issue from repository with name “test-nakov-repo”. Send a GET request to
https://api.github.com/repos/testnakov/test-nakov-repo/issues/:id, where :id is the issue.

© 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

You might also like