How to upload file using RQM Reportable REST API?
![]()
Hi,
I would like to know how to load file using Reportable REST API.
I know RQMUrlUtility can do this, but I prefer to use API first.
Thank you for your help.
|
Accepted answer
One other answer
![]()
Ralph Schoon (62.0k●3●36●43)
| answered Apr 28 '22, 2:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Apr 28 '22, 3:15 a.m.
As far as I can tell, the name Reportable REST API suggests it is for reporting only. That has always been my first reaction too.
But looking into https://jazz.net/wiki/bin/view/Main/RqmApi suggests that this is not necessarily the case as it seems to support POST requests:
When looking into the RQM URL Utility https://jazz.net/wiki/bin/view/Main/RQMURLUtility#Running_ETM_URL_Utility the URI it uses to upload stuff mentioned in this example https://jazz.net/wiki/bin/view/Main/RQMURLUtility#UPLOAD
contains com.ibm.rqm.integration.service.IIntegrationService which is basically the same URI schema that is mentioned in https://jazz.net/wiki/bin/view/Main/RqmApi#integrationUrl
So for all I can tell, the RQM URL Utility uses the Reportable REST API to do what it does. I think carefully looking into the working example and reading up on the Reportable REST API documentation should be promising.
With respect to upload of files, so far I have not seen any OSLC API that implemented it. I might be wrong, as this has so far not been my focus. Comments
Well THAT'S interesting! It does look like they've provided a full CRUD API unlike the other applications.
It looks like you can upload a file as an attachment if that's what you want to do. The following is a list of all resources along with what REST operations are supported:
ETM seems to be the exception from the rule, Davyd. I would be interested in seeing working examples. Not sure I can spend the time.
I just did a file upload with the Reportable REST API using Postman
|