API debug console with delete APIs

API debug console with delete APIs

This question is answered

Does the v2 API Debug Console in TC6.1 support testing of REST APIs using the DELETE verb? I've tried it against the CustomEndPoint SDK project but receive an HTTP 500 error ("BadRequest: The requested action does not accept HTTP POST (Web Hook) requests") when sending a request to the delete endpoint. The data field is completely blank (the request's Content-Length is 0).

Am I missing something? Here's what I have configured on the request side of the console, including a valid username and API key:

Thanks!

Verified Answer
  • Looks like there is a bug in that project of the SDK. The FooDeleteRequest needs the following attribute added to it: [RestAcceptsHttpPost]

All Replies
  • Looks like there is a bug in that project of the SDK. The FooDeleteRequest needs the following attribute added to it: [RestAcceptsHttpPost]

  • Thanks, Dan! Adding the [RestAcceptsHttpPost] attribute solves the problem.