You can translate the question and the replies:

Rest Api - No of Records

hi all, I am using denodo vdp to create rest api. After executing I get the data but I am unable to get total number of records along with the output of data. adding $count give just total number of records, while i want both data and total number of records at last. anyways to get it?
user
11-01-2024 20:08:49 -0500
code

1 Answer

Hi, As you mentioned, `$count` can be used to obtain the number of records, but there is no option to get the data along with the number of records in a single request to the REST API. For more information on use of the `$count` segment, refer to [Obtaining the Number of Rows of a Result Set](https://community.denodo.com/docs/html/browse/latest/en/vdp/administration/restful_architecture/restful_web_service/obtaining_the_number_of_rows_of_a_result_set) in the User Manuals. If you need the data and number of records in a single request to the rest API, you could add a field to the view with the number of rows, as suggested in this similar community question: https://community.denodo.com/answers/question/details?questionId=9064u000000HADxAAO&title=return+the+total+results+in+REST+webservice+response Hope this helps!
Denodo Team
18-01-2024 19:52:47 -0500
code
You must sign in to add an answer. If you do not have an account, you can register here