How to setup GET method for GraphQL in apim

Visan, Nicolae 36 Reputation points
2023-03-24T09:35:33.02+00:00

Hello,

We created a GraphQL API for a FunctionApp in Azure API Management. We tested before with GET method using the GraphQL query with the FunctionApp url and was working.

We did the same test but instead of FunctionApp url it was added the API gw url, but in this case the GET method doesn't work. We managed to do request using apigw only for POST method and the query in body.

Please help us to setup apim to accept GET requests for GraphQL API.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,071 questions
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,306 Reputation points
    2023-03-28T01:53:41.78+00:00

    Mota, Adrian (extern DSS) Visan, Nicolae We appreciate the additional context you provided. At the moment, GraphQL in APIM only supports POST requests for sending the query in the body and query string parameters. Unfortunately, GET requests are not supported and we have a backlog item to support this feature but no ETA available at the moment.

    We value your feedback and ideas, so please feel free to submit your use case via https://aka.ms/apimwish. Others with similar interests can upvote your idea too and this will help us prioritize the features. I hope this helps with your question and let me know if you have any.


    If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.