prisma1 icon indicating copy to clipboard operation
prisma1 copied to clipboard

Generate documentation for API

Open danmkent opened this issue 9 years ago • 7 comments

It would be great if the graph.cool web interface had a view that showed documentation for the generated graphql API, like that generated by https://github.com/mhallin/graphql-docs or https://github.com/2fd/graphdoc

This would be a bit like the existing graphiql docs tab but formatted to fill the whole window like the graph view does. It would also be really useful if this view could be access from its own URL so that it could be left open in its own browser tab as a reference when coding against the generated API.

danmkent avatar Jul 10 '17 12:07 danmkent

Just use the service the nice competitor is offering: Open your browser to: https://graphql-docs.com/docs/?graphqlUrl=https://api.graph.cool/simple/v1/PROJECTID

and you've got yourself your API docs :smile:

kbrandwijk avatar Jul 28 '17 02:07 kbrandwijk

It could be quite nice to use something like Slate (https://github.com/lord/slate) to have an experience similar to the Stripe documentation but with Graphcool/GraphQL.

sedubois avatar Aug 02 '17 14:08 sedubois

The new GraphQL Playground comes with a great docs experience - check it out here: https://blog.graph.cool/introducing-graphql-playground-f1e0a018f05d

marktani avatar Sep 29 '17 14:09 marktani

The new playground docs are great, but are limited when developing on only a single laptop screen. Though I generally do my dev with 1+ additional monitors, not everyone will have that luxury. It would be very helpful to have the docs (presented exactly as they are), but available via a separate console tab.

screen shot 2017-10-01 at 10 56 05 am

Consider the above screenshot: I can see all of my primary navigation in the console, but toward the bottom, I am presented with two buttons: Endpoints, and Docs. I click on endpoints, and as I would think, the endpoints are presented, specific to my project. On the contrary, when I click on docs, it takes me to the graphcool docs, not my project docs (which was slightly confusing at first).

I love having easy accessibility to see the graphcool docs with a button click from the console, but it would seem more logical to have this particular placement link to project-specific docs, presented in such a way that takes up the console view entirely.

screen shot 2017-10-01 at 11 00 24 am

TL,DR; - It would be nice to separate the Docs portion, as shown above, into a full screen view.

eruby94 avatar Oct 01 '17 15:10 eruby94

It would be nice if you could 'detach' the docs, making them open in a new window, so you could put that on your other display (similar to how you can 'detach' the dev tools in Chrome)

kbrandwijk avatar Oct 01 '17 19:10 kbrandwijk

Thanks, I moved the feature request to prismagraphql/prisma-cloud-feedback #153.

marktani avatar May 24 '18 13:05 marktani

how can i take that documentation pages? i need to add api documentation to my production project- should i use that one generated in graphql playground? Is it normal to enable graphql playground on production site?

How to deal with api cals made in production? i mean if theres is api for changing something how to handle them and prevent real productions database changes?

katemicse avatar Nov 27 '18 01:11 katemicse