Differentiate between GET and POST method in Laravel cake Controller REST API
-
Possible duplicate of [When should I use GET or POST method? What's the difference between them?](https://stackoverflow.com/questions/504947/when-should-i-use-get-or-post-method-whats-the-difference-between-them) – Erik A Dec 26 '17 at 12:27
4 Answers
There is concept of REST. REST is an architectural style and a design for network-based software architectures.It is not much specific on Programming language based. Follow this thread. what-is-rest-slightly-confused

- 1,137
- 1
- 16
- 31
GET requests a representation of the specified resource. Note that GET should not be used for operations that cause side-effects, such as using it for taking actions in web applications. One reason for this is that GET may be used arbitrarily by robots or crawlers, which should not need to consider the side effects that a request should cause.
POST submits data to be processed (e.g., from an HTML form) to the identified resource. The data is included in the body of the request. This may result in the creation of a new resource or the updates of existing resources or both.

- 31,639
- 12
- 42
- 67

- 47
- 3
GET - Retrieves Information (For eg: Providing response with some lists of data from the database) POST - Consumes provided resource and do the specified actions (For eg: Storing form data in the database)
You can go through this: https://vimeo.com/17785736

- 194
- 4
GET - Retrieves Information (For eg: Providing response with some lists of data from the database) POST - Consumes provided resource and do the specified actions (For eg: Storing form data in the database

- 1