Instead of having something like “/api/getUserById?id=1234” which represents an action, we can say “/api/users/1234” represents a specific user. Endpoints in a RESTful system represent specific resources. The HTTP protocol uses a set of verbs (GET, POST, PUT, DELETE, etc) to manipulate various resources. REST stands for Representational State Transfer and it is the way that web browsers communicate. Sadly, a RESTful API is not going to help you get better sleep at night. If however, you are not, I will take a brief moment now to explain them to you. Chances are that if you’re interested in creating one, that you are familiar at least a little bit with what they are.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |