Post message to an Extension
This api sends a message directly to a specific extension that listens to DirectRequestEvent.
The path must be composed by ExtensionId#functionId, for example the function DataGrid of the extension MatchBackendExtension will be MatchBackendExtension#DataGrid
See the documentation of the specific extension for further details.
POST/rest/consultation/extension/valueOfTheExtensionId#functionId
Query parameters | None |
Header |
|
Header/Parameter | tenant |
Body | json string with the message for the extension |
Returns | ConsultationResponse or none |
Required role | USER |
Managed errors | 401: insufficient privileges |
Example request
curl 'http://localhost:8080/mwp/rest/consultation/extension/MatchBackendExtension%23DataGrid'
-H 'consultationId: 5fb709e9dd500b27141497536b93c1d1'
-H 'Content-Type: application/json' -H 'tenant:default'
-H 'auth-token: 7521ce7c-fcad-4725-b03a-a41969aad034'
--data-binary '{"selected":["0"],"multi":false}'
-H 'consultationId: 5fb709e9dd500b27141497536b93c1d1'
-H 'Content-Type: application/json' -H 'tenant:default'
-H 'auth-token: 7521ce7c-fcad-4725-b03a-a41969aad034'
--data-binary '{"selected":["0"],"multi":false}'