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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.