Question

I need to document both Magento2 in-built and custom GraphQl endpoints. (Just like we use swagger to document APIs). So far I tried the below tools. But both seem to be covering a limited number of GraphQl endpoints. They do not generate documentation for all the GraphQl endpoints available in Magento.

It would be great if you can share any tool which you have used to document GraphQl

Was it helpful?

Solution

You may use Altair tool in your Chrome browser to download all magento default as well as your custom GraphQL endpoints.

enter image description here

You can use "Export SDL" option in order to download the specific query or mutation documentation.

I hope this helps!

Thanks,

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top