Is there any way to suppress moduleContext information in the DNG REST API?
I would expect a "resources" REST call to only return base artifact information, but it turns out to be extremely heavy weight on large modules. Is there any way to suppress moduleContext information from being returned? |
Accepted answer
Not sure why you think a module should return resources for base artifacts only. A module always refers to module artifacts, while the module artifacts recognize their corresponding base artifact.
Robert Huet selected this answer as the correct answer
Comments Sorry, my initial question was not stated very clearly. I would expect a "resources" query that includes a set of module artifacts to provide a lightweight response with only module-level information for these modules (not the artifacts they contain). The "modules" query is the one that could be more heavyweight and return the moduleContext for all the artifacts it contains. I believe that is how "resources" and "collections" queries worked in the early RRC versions.
So I take it from your response that the answer is "No". There are no REST API that can return just the module level information without all the added moduleContext for all the contained elements. Also, there is no undocumented flag that would suppress that level of detail. Is that right?
Thanks,
Robert
Donald Nong
commented Feb 08 '17, 8:40 p.m.
I'm with you on this one. The "resources" format returns that exact same information as the "modules" format, which does not make sense to me. But that's the current implementation anyway.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.