How to Accept JSON POST Requests in Lumen

Sending a JSON encoded entity to a RESTful API is a common need, and a JSON payload is actually pretty slick and convenient. It eases the pain of form-encoded strings when sending post data, and makes it easier to structure complex data thats more readable. It can also make documentation easier to follow when you share cURL examples of making requests to your API. JSON is much easier for readers to digest compared to form encoded request params.

So how do we do it in Lumen? I will show you a...

1 like ·   •  0 comments  •  flag
Share on Twitter
Published on February 16, 2016 11:14
No comments have been added yet.