HTTP GET

With HTTP GET, what we are doing is getting something from the server. In our case, it’s a work permit with an id of 1.

images/rest/get-me.png

Now look at the full URL used to generate this request.

images/rest/get-url.png

It’s made up of our resource name permits, the ID of the permit we are looking for (1), and that last little bit that specifies the data format—JSON.

JSON (JavaScript Object Notation) is a simple data format we use all the time on the web for sending data. It’s an array of name-value pairs, separated by commas, and it makes sending data over the web compact and easy—which ...

Get The Way of the Web Tester now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.