How to fetch all folders and requirements
Hello. I've ran into a problem and I don't know how to fix this.
Supposing that I have some folders and in every folder there are some requirements, the question would be: how and which is the best way to fetch these folders alongside their requirements?
I've followed this tutorial, but I can get only folders with their titles and not requirements. Based on other questions, I should add some 'oslc.prefix' after the query, or? I'm confused now.
Thank you.
2 answers
Sorry for bumping, but I need an answer quick.
So, my Folder Query Capability query base looks like this:
and I tried appending the following to it:
but I can't get get requirements, only folder titles.
I'm a bit confused, because if I only GET on the query base above, I get folder titles and their URLs. Should I append the oslc.prefix to these URLs or to the query base?
Hi,
The query that you are using is only to fetch the folder and its structure. I mean the folder title, url and its sub folder url. The query will not directly provide the requirements within.
To fetch the requirements you need use the "Query Capability" query base URL and append it with
&oslc.prefix=nav=<http://com.ibm.rdm/navigation%23>&oslc.where=nav:parent=<folder URL>
folder URL -> is the URL you get from the previous query.
Regards,
Ankita