Timeout happening in GC API to fetch components from GC Project area
Hi,
when we use GC API to fetch all components. Sometimes for the first time it fails to get response.
We used this api in our application,
When the application is open for 10 mins then server time out is happening though we used basic credentials in the API call.
Has anyone faced same issue? or is there any workaround to fix this issue?
Thanks & Regards,
Thiru
Accepted answer
That REST service would return all components for a context project area. If there are large number of components, the request could take a long time to execute. Note that this does not form part of the publicly documented GCM REST API.
The public GCM REST APIs are documented in https://jazz.net/wiki/bin/view/Main/GlobalConfigurationManagement#APIs_for_GCM_and_global_configur. That pages links to the main API documentation page at https://jazz.net/gc/doc/scenarios. It links to a page that shows how to query for components at https://jazz.net/gc/doc/scenario?id=QueryComponents. This uses an OSLC Query Capability. The advantage of using such a query capability is that you can specify a condition to specify which components are of interest and limit the size of the returned results, and can specify which properties of each component should be returned, also limiting the response size. I highly recommend you use that API service method instead.
Best regards,
David
David