Posts

Showing posts with the label GET Requests

Testing GET Requests and their Responses using Rest Assured

Image
What is a GET Request? The GET method is used to retrieve information from the given server using a given URI. Requests using GET should only retrieve data and should have no other effect on the data. Way to send GET Request using Rest Assured and Check Status Code: For this exercise, we will use Google Places API ( Place Search ). You can view the API at below link : Google Place Search API We will learn about the Text Search GET request of Google Places API. A Text Search request is an HTTP URL of the following form: https://maps.googleapis.com/maps/api/place/textsearch/output?parameters where  output  may be either of the following values: json  (recommended) indicates output in JavaScript Object Notation (JSON) xml indicates output as XML Certain parameters are required to initiate a search request. As is standard in URLs, all parameters are separated using the ampersand ( & ) character. Testing HTTP Error Codes We will verify t...

Popular posts from this blog

Using RequestSpecBuilder in Rest Assured ( Code Reuse )