Reputation: 1
I created an empty function. And I have a xml file which has information inside. I want to send this file with Postman to this URL and save the information with my function. Anyone any ideas ? Thanks for your help.
Upvotes: 0
Views: 1268
Reputation: 323
Your TypoScript object will be like this
mycustompageType = PAGE
mycustompageType{
typeNum = 1897
config {
#Required configuration
}
10 = USER_INT
10{
vendorName = YourVendorName
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = YourExtensionName
pluginName = YourPluginName
controller = YourController
switchableControllerActions {
YourController {
1 = YourAction
}
}
}
}
You can get extension detail using below code // get extension information
echo $this->request->getControllerExtensionName()."<br>";
echo $this->request->getPluginName()."<br>";
echo $this->request->getControllerName()."<br>";
Finally, you have to run this URL "yourdomain.com/?type=1897"
Enjoy!!
Upvotes: 1
Reputation: 6164
Hey there and welcome to StackOverflow.
I used to handle such a function recently and I did it this way:
data
)Upvotes: 1