Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

GraphQL API

ejeong
Valued Contributor
Valued Contributor

Hello.

Can anyone confirm if GraphQL is supported with Rest Connector ?

Thanks

10 REPLIES 10

rushikeshvartak
All-Star
All-Star

 

I do see GraphQL support rest api

 

https://docs.gitlab.com/ee/api/graphql/users_example.html


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

ejeong
Valued Contributor
Valued Contributor

Thanks.. I checked we can make call from Postman.. but I wanted to know how to configure httpParam for this type of API.. 

Thanks

ejeong
Valued Contributor
Valued Contributor

I am making call like below in Postman

ejeong_0-1656552188328.png

 

ejeong
Valued Contributor
Valued Contributor

I found someone tried like below 

 

{

 "connection": "EdpConnection",

 "url": "<url>",

  "httpMethod": "POST",

  "httpParams": {

   "query": "query MyQuery { graphQlMethod(limit: 100, nextToken: <access token for pagination>) }"

  },

REST API documentations follow syantax

 

https://saviynt.freshdesk.com/support/solutions/articles/43000521736-rest-connector-guide#RESTConnec...


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

ejeong
Valued Contributor
Valued Contributor

Thanks for response again. I onboarded over 100 apps already with rest api but didn't have experience about this API type.... so was wondering if its supported and how I have to send "httpParam" in import/create JSON

"query":{"query":"query {\n users() {\n totalCount\n nodes {\n username,\n usageStatistics {\n lastActiveTime\n }\n \t}\n }\n}"}

https://sourcegraph.com/api/console?_ga=2.163081980.1901217736.1656557669-2145641703.1656557669#%7B%...


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

sahajranajee
Saviynt Employee
Saviynt Employee

Hi @ejeong ,

GraphQL API is not supported end to end by our connector as the pagination support is lacking as of now. You should still be able to use the GraphQL query in httpparams and make the recon api call.

 


Regards,
Sahaj Ranajee
Sr. Product Specialist

ejeong
Valued Contributor
Valued Contributor

how about if app support "pageNumber" and "PageCount"  as parameter and Total Page Number is provided in response. 

Then, can't we make next url to be called ? 

sahajranajee
Saviynt Employee
Saviynt Employee

Yes, if the api response has variables which are under the supported type, you should be able to, but if there is a dynamic counter . Then it would not be supported.

 


Regards,
Sahaj Ranajee
Sr. Product Specialist