Darshan Malani
Darshan Malani

Reputation: 476

Differentiate between GET and POST method in Laravel Controller REST API

Differentiate between GET and POST method in Laravel cake Controller REST API

Upvotes: 1

Views: 197

Answers (4)

Vasant S
Vasant S

Reputation: 1

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

Upvotes: 0

Prasan Ghimire
Prasan Ghimire

Reputation: 194

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

Upvotes: 0

Akhilendra
Akhilendra

Reputation: 1167

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

Upvotes: 1

Sadhvi Tripathi
Sadhvi Tripathi

Reputation: 47

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.

Upvotes: 0

Related Questions