Skip to main content
10-Marble
September 5, 2024
Solved

Rest API: POST rest/item no longer available in 2.0 Husky

  • September 5, 2024
  • 2 replies
  • 1923 views

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:

 

405: The page /cb/rest/item does not exist.
Best answer by alfonso_c

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:

alfonso_c_0-1725602196098.png

 

Please let me know if that works.

 

Side notes:

  • Rest API V1 is a legacy integration but still available on Codebeamer, I documented some common Q&A at the page REST API (v1) support in Codebeamer.
  • This is currently being handled as a bug under Codebeamer SPR 13644853 - A REST API Endpoint needs now a „/“ at the end, which was not necessary before, future versions should no longer require the forward slash to be added at the end.

 

2 replies

alfonso_c14-AlexandriteAnswer
14-Alexandrite
September 6, 2024

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:

alfonso_c_0-1725602196098.png

 

Please let me know if that works.

 

Side notes:

  • Rest API V1 is a legacy integration but still available on Codebeamer, I documented some common Q&A at the page REST API (v1) support in Codebeamer.
  • This is currently being handled as a bug under Codebeamer SPR 13644853 - A REST API Endpoint needs now a „/“ at the end, which was not necessary before, future versions should no longer require the forward slash to be added at the end.

 

Nico_M10-MarbleAuthor
10-Marble
September 6, 2024

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

14-Alexandrite
September 6, 2024

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.

13-Aquamarine
September 6, 2024

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.