DEV Community

Swarup Kumar Mahapatra
Swarup Kumar Mahapatra

Posted on

Need help in understanding 'Why use REST'

I have been using RESTful services for quite a while (#what and #how of REST). I am looking for examples where the example might look like REST but it doesn't follow the core REST principles. Help me out please!.

[UPDATE] - The following video https://youtu.be/pspy1H6A3FM?t=1018 has been an eye opener, however its worth while to have a discussion.

Top comments (2)

Collapse
 
ben profile image
Ben Halpern

That is a good video.

In trying to add a useful comment, I'm really stricken by just how hard REST is to understand, explain, and everything in between.

The tough part, is that I can say the same about anything I know about that came before or after.

I sort of feel like making something new.

Collapse
 
swarupkm profile image
Swarup Kumar Mahapatra

The intriguing part of the video was, REST was never about about cute urls like '/user/{userid}/order/{orderid}' , neither it is about GET,PUT,POST.

Rather its about resource identification and resource discoverability.

The idea of the URIs and the verbs is one of the recommendations using which the above statement can be achieved.

Prior to that video, I always though, REST is all about representation of domain data and the restricted list of operations (GET, PUT, POST , DELETE)