Hi Dojo,
I would like to create a dataminer API. This API needs to export the data of a table to json using a curl protocol. This table is also exposed in a low-code app. Is it possible to do this operation? If so, how? I have read the documentation here https://docs.dataminer.services/user-guide/Advanced_Modules/User-Defined_APIs/UD_APIs.html but I did not understand if what I want to do is possible to accomplish or not.
Hi Marco,
First of all, if I am not mistaken, curl is not a protocol but a tool to transfer/receive data using URLs. User Definable APIs allows you to run an API automation script where you can define the content of the response of your API call (in your case, a JSON-formatted response).
Answering your specific question, yes, it should be possible to expose information from a table using User Definable APIs. However, we will need some extra details to answer your question. Could you let us know the source of information of the table that you would like to expose in your custom endpoint? Is a table from a specific element, from multiple elements, from another component in DataMiner?
Please also have a look at the web services. For example, if you would like to receive information from a table (for a specific element), there is already a method available for that purpose (GetTableForElement)
Hi Miguel, thanks for your reply. We have created a dashboard to monitor many TV channels. So we have several elements to retrieve data from. The protocol is the same for each item. Can you please tell me which solution is better? Whether to use the API or a web service? We still need to document well how dataminer web services work. Thank you.