Taking a REST

REST stands for representational state transfer, and it is a simple, standard way to design web APIs.

To see what I mean, imagine you’re designing a new photo-sharing site (yay!) and you need to come up with a web API that allows people to create, read, update, and delete their photos on your website. How would you do it?

images/int/how-many.png

If you think about it, there are literally dozens of ways you could build an API to share photos. You could write a web service called retrievePhoto, where people would pass you the id of their photo and you would send it back to them. Or you could use another similar word such as fetch. That would work too.

Therein ...

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.