Reputation: 8293
So I have an ajax call that calls a controller action that fires off a package for execution that is separate from my main application which returns a result. That result (a success or failure) is what I want returned from that controller action and the ajax action is currently a GET request with the parameters for the package being sent with the request. Should this be a GET request to be 'RESTful', or should it be a POST request?
Upvotes: 0
Views: 1049
Reputation: 132
I would say it should be a POST. GET should have no other effects then to retrieve a representation of data. Here's what W3C says.
Use GET if:
Use POST if:
Upvotes: 2