Hello,
This is still not working for me. The webhook is being subscribed without a problem, but never unsubscribes itself.
I have a delete action on my REST controller and I tested it directly with the URL I add to the header when subscribing and the Rest call works. I add the following to the subscribe action: responseMessage.Headers.Add("Location", $"{host}/api/web-hook/delete/{id}");
I also tried to add an internal action to my swagger file but still nothing (I also tried without the id as parameter but hardcoded to an old subsciption, still nothing):
"/api/web-hook/delete/{id}": {
"delete": {
"responses": {
"200": {
"description": "OK"
}
},
"summary": "Delete WebHook",
"description": "Delete the WebHook",
"operationId": "DeleteWebHook",
"x-ms-visibility": "internal",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string",
"x-ms-visibility": "important",
"x-ms-url-encoding": "single",
"x-ms-summary": "ID",
"description": "Specify the ID of the WebHook"
}
]
}
}
EDIT:
I changed it so that the ID is also hardcoded an not needed in the delete call (removed it from the response header and swagger) and I made the delete call on the REST API open for everyone and still nothing. Added logging on the first line of the method and the method doesn't even get called.
Thanks in advanced!
Matthijs