vendredi 20 octobre 2017

Does RESTFul mean URL shouldn't contain parameters

I've heard about the conception RESTFul for a long time but I always can't understand it clearly.

I've read the links below:
What are RESTful web services?
What exactly is RESTful programming?

As my understanding, RESTFul means that the URL shouldn't contain any verb, meaning that an URL represents an unique resource. And also, the method GET shouldn't modify any resource and we should use POST to do so.

But I still have a question.
For example, if we want to search a user by his name, we can design the URL like this:

http://ift.tt/2hUAxXP

Or like this:

http://ift.tt/2gsu5H9

Can you tell me which one is RESTFul?




Aucun commentaire:

Enregistrer un commentaire