I make a post using form data id = 1
and use getparams method like this $request->getParams('id')
i get the id.
Now i make a query via Json
POST localhost/books_example/public/apiv1
Body is:
{"id": "1"}
Here $request->getParams('id')
, $request->getParams()
and $request->getBody()
are not work. Now, how can i get the id parameter?