Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
It seems that with 2.0.0.5 version the posting of items no longer works with the REST API?
We know that the future is with Swagger but it was never announced that REST calls would be disabled. Is this documented somewhere which REST calls are dismantled with which version?
Specific call that does not work anymore:
POST <baseURL>/cb/rest/item
Response:
Solved! Go to Solution.
Edited - added bug ID
Hello @Nico_M , per my tests, it appears the usage of the ending forward slash / is required on this version. To be more specific, I reproduced the HTTP 405 error with POST rest/item but it worked with POST rest/item/, here is a screenshot from my test via Postman:
Please let me know if that works.
Side notes:
Edited - added bug ID
Hello @Nico_M , per my tests, it appears the usage of the ending forward slash / is required on this version. To be more specific, I reproduced the HTTP 405 error with POST rest/item but it worked with POST rest/item/, here is a screenshot from my test via Postman:
Please let me know if that works.
Side notes:
Dear Alfonso,
Thanks for your quick reply, this works for us.
Could you already tell me in which cB version/SP this will be patched?
Cheers,
Nico
Hi @Nico_M , as I can see, the fix is candidate for release on 2.0.0.6, 2.1.0.4, 2.2.0.2. Please note this is just an unconfirmed estimation, it is highly tentative and may be subject to change. To know if the fix is eventually present, you may search for #13644853 in the Release Notes once the new version is released.
Also possible solution is, adding this rule into the cb/web/WEB-INF/urlrewrite.xml and restart the Codebeamer
<rule>
<from>^/rest/(.*)(?<!/)(?<!\.spr)$</from>
<to>/rest/$1/</to>
</rule>
Note that "swagger" is not a different API ... it just a way of describing a REST API, and there are tools that use the swagger description to simplify experimentation with the API. So swagger does not replace the REST API, but just describes the REST API.