Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/29/2022 03:43 PM
Hello.
Can anyone confirm if GraphQL is supported with Rest Connector ?
Thanks
Solved! Go to Solution.
06/29/2022 05:26 PM - edited 06/29/2022 08:08 PM
I do see GraphQL support rest api
https://docs.gitlab.com/ee/api/graphql/users_example.html
06/29/2022 06:21 PM
Thanks.. I checked we can make call from Postman.. but I wanted to know how to configure httpParam for this type of API..
Thanks
06/29/2022 06:23 PM
I am making call like below in Postman
06/29/2022 06:36 PM
I found someone tried like below
{
"connection": "EdpConnection",
"url": "<url>",
"httpMethod": "POST",
"httpParams": {
"query": "query MyQuery { graphQlMethod(limit: 100, nextToken: <access token for pagination>) }"
},
06/29/2022 07:26 PM
REST API documentations follow syantax
06/29/2022 07:41 PM
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
06/29/2022 08:07 PM
"query":{"query":"query {\n users() {\n totalCount\n nodes {\n username,\n usageStatistics {\n lastActiveTime\n }\n \t}\n }\n}"}
06/30/2022 12:28 AM
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.
06/30/2022 12:33 AM
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 ?
06/30/2022 01:01 AM
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.