07-03-2008 07:38 AM
I would like to use the Systinet API to do simple searches based on the Service Name. I can see that through the UI I can go to Search->Services->Find Service(By Names)->Add Name->Find ( Home > Find service) and then search a service by name, without providing a serviceKey or businessKey.
I would like to do the same as above but through an API call from Java. Please let me know (or point to actual servlet/class that does the above in the UI) how I can do this using the Systinet API.
I have reviewed the examples but they all require either a serviceKey or businessKey+Catalog.
Thanks for your help!
12-06-2012 09:38 AM
I think you are able to do the search you need using.
This Class have a method named
search, which parameters are artfactType, searchCriteria.
for examplet if you are looking for XML service then artifactType will be xmlArtifact, the name must to be the same that the one used in model.
About searchCriteria as you can see is a List that contains Pair<String, String>, you can set in the first String the name of the attribute in which you want to based your search and in the other string the value that you try to match.
List<Pair<String, String>> searchCriteria = newArrayList<Pair<String,String>>();
First string or name or the attribute must be the same that the one used in model again.
Hope this help you.
12-18-2013 11:42 AM
Has anybody had a problem while using API to search for artifacts, and only getting the first 500 items? We have more than 500 services in our Systinet, and the API only provides the first 500...