Skip to content
Advertisement

How to query an API with graphql requests [closed]

Currently I am using Postman with POST and GRAPHQL type queries.

I wish I could query the API with spring-boot.

First, I want to make it very, very simple to check that everything is working. I tried with httpURLConnection but no luck. Could you advise me to do something quick?

Then use spring boot, what do you advise me to use?

Thanking you

Advertisement

Answer

I would suggest using some graphql client package instead of writing your own solution. You could use https://github.com/apollographql/apollo-android which is suitable for any Java application. More info can be found here: https://apollographql.com/docs/android/essentials/get-started-java

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement