I am using the following request to post data to the REST api using PUT method:
CURL.EXE -i -H "Content-Type: application/json" -X put -d '{"lat":56.87987,"lon":97.87678234}' http://webservice.dev:8081/api/v1/interface/123
But I don't know how to get the lat/lon data into the Restful Controller.I have tried
Input::all()which gives nullInput::json->all()which also gives nullRequest::getContent()which gives {"lat":56.87987,"lon":97.87678234} but I don't know how to parse that.
Any help would be appreciated.Thanks