how to find the snapshots containing a input component
One answer
I don't think we have REST/OSLC API for this. We do have server side-API, see:
IScmQueryService.findBaselineSetsUsing(IComponentHandle comp, IRepositoryProgressMonitorHandle progress) (Note: It's marked as deprecated, but it still currently available for use - otherwise you'd have to write your own queries which would be a little harder to do vs just calling this API).
Comments
whats the difference between using server side API and rest oslc API.
I am currently using server side API given by you, but its taking huge amount of time.
To be honest, I'm not sure what you were referring to when you mentioned "OSLC API :findWorkspacesContainingComponent". I did a search for the string 'findWorkspacesContainingComponent' in the code and didn't find any references, so not sure which API you were using for that.
The Java API is the recommended way to write your custom code (extensions/plugins, etc.). So you should be able to find everything you are looking for in 2 of our main API interfaces IScmService and IScmQueryService (and of course the other API is on the interfaces for the various SCM items)