Commencer un nouveau sujet
Répondu

Record count using the REST API

How do you get a total records count on a Semarchy GET? Is there an option such as count=true or another parameter in the URL to get this count back in the header response? Failing that, is there a configuration option in Semarchy to enable this?


Meilleure réponse

This is how you can get a record count using GET:

 For example, if I want to count the number of Customer golden records in my 'CustomerTrainingDemo' data location, the url is

http://localhost:8088/semarchy/api/rest/count/CustomerTrainingDemo/Customer/GD

This syntax is fully explained in our Integration Guide here:

https://www.semarchy.com/doc/semarchy-xdm/semig.html#counting-records

You don't even have to construct this, the url can be generated for you in the REST API documentation which you can find from the REST API icon on the xDM Welcome Page:

How do you get a total records count on a Semarchy GET?  Is there an option such as count=true or another parameter in the URL to get this count back in the header response?  Failing that, is there a configuration option in Semarchy to enable this?
1 commentaire

Réponse

This is how you can get a record count using GET:

 For example, if I want to count the number of Customer golden records in my 'CustomerTrainingDemo' data location, the url is

http://localhost:8088/semarchy/api/rest/count/CustomerTrainingDemo/Customer/GD

This syntax is fully explained in our Integration Guide here:

https://www.semarchy.com/doc/semarchy-xdm/semig.html#counting-records

You don't even have to construct this, the url can be generated for you in the REST API documentation which you can find from the REST API icon on the xDM Welcome Page:

How do you get a total records count on a Semarchy GET?  Is there an option such as count=true or another parameter in the URL to get this count back in the header response?  Failing that, is there a configuration option in Semarchy to enable this?
Connexion pour poster un commentaire