Trying to create a Configuration/Component in ETM using OSLC
I have tried to create a Configuration and a component in IBM ETM using OSLC, but I'm getting a 400 error. Can anyone tell me what I'm missing?
The xml body I used for creating a component is:
I sent a POST request to the creationFactory URL I got from the configuration catalog - https://[url]/qm/oslc_config/resources/com.ibm.team.vvc.Component
This is the body I used to create a Configuration (a Stream):
Its clear from the 400 response code that I'm missing something.
Additionally are there any sample request code I can refer to? Any help is appreciated, Thanks
One answer
Not sure about ETM but in DOORS Next to create a stream you POST to the baseline it's to start from - so you probably first need to create a baseline in your initial stream. At least in DOORS Next UI when you create a stream when already in a stream the UI will helpfully create a baseline in the current stream and the new stream from that baseline. Not so in the APIs, you have to do that work.
Comments
The directly relevant part of the OSLC Configuration Management 1.0 standard is here: https://docs.oasis-open-projects.org/oslc-op/config/v1.0/os/config-resources.html#creation