Skip to main content

Let‘ say you have a graphQL query that works in a Postman or in Ataccama playground, and you want to use it in a plan in ONE Desktop. How to do it?

You cannot simply copy and paste the JSON body into JSON call step. You have to reformat it. You can use the COPY CURL button in Playground (in the upper right corner) or similar button Code in Postman. That will create a curl command that also contains the body:

Playground
Curl command

This body can be then pasted into JSON call. The query method needs to be set as POST.

JSON call step configuration

 

Want to learn more about the graphQL API? Check out the documentation: https://support.ataccama.com/home/docs/aip/latest/development-guides/one-development-guide/one-api

Hi Anna, Thank you for this. Could you make a series out of this?

 

I understand it needs configuration and access security as well?

Would be nice to understand how you did this:

Let‘ say you have a graphQL query that works in a Postman or in Ataccama playground, and you want to use it in a plan in ONE Desktop. 


Hello @Marnix Wisselaar , can you please elaborate what you mean by the series? 

As for the configuration and access security, you mean the Playground? 


There were quite some steps to get it to work. I’ll ask.


Hi @anna.spakova , can you make a detailed post on how to work with graphql in ONE Desktop IDE. I have a requirement of the same task.


Hi @suryakanth.Emisha , what would be specifically what you are interested in? There are a couple more articles on community covering this topic e.g. 

 or 

 

Can you let me know what are you missing? 🙂 I will be happy to help.

Kind regards,

Anna


@anna.spakova I've already gone through the documentations which you've shared in the above reply. My task is to run Audit apis using desktop IDE. So let me know if there's anything related to audit api through IDE.


Hi @suryakanth.Emisha , see attached an example of the call via IDE. It was used to create statistics of active users, so take it as an example please. The API endpoint is different than the graphql endpoint. The address of the endpoint should be part of the deployment handover document (in case of a self-managed installation) or can be obtained via our support (in case of PaaS installations).

We have the Audit API documented here: https://docs.ataccama.com/one/latest/one-apis/audit-api.html

Please let me know if you need any additional help.

Kind regards,

Anna


Reply