xperseguers / t3ext-routing

TYPO3 Extension routing
19 stars 6 forks source link

[FEATURE] Additional Restful Json Request instead Form-Data Requests #25

Open devmes opened 6 years ago

devmes commented 6 years ago

This pull request adds the option to send data in json format instead of standard form-data. Prerequisite is that on the request the content type is set to "application / Json". If no content type has been specified, the form data can be sent as before.

Json Post Sample:

curl --request POST http://localhost/routing/extension-key/my/demo/product
{
    "newProduct": {
        "type":"sample",
        "title":"sample"
    }
}