So I have progressed pretty far to get my plugin where I want it to be. I have a problem though.
SO I call a simple GET
When using in the browser:
$this->plugin->setResponse("Created a New SubScription");
seems to work fine. I see a blank screen with "Created a New SubScription" written out.
However whenever I call this from curl and save the response I get all the HTML surrounding "Created a New SubScription". is there anyway to stop this?
Ideally I would like to send back a JSON / Swagger File of the resource they wish to View.
Thanks.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »