IDE
Apollo Kotlin Execution comes with a built-in IDE that makes it easy to explore your schema, write your operation with autocomplete and execute them.
You can get a ready-to-serve version of Apollo Sandbox using the sandboxHtml()
function:
val pageTitle = "Welcome to my API"
val initialEndpoint = "http://localhost:8080/graphql"
val html = sandboxHtml(title = pageTitle, initialEndpoint = initialEndpoint)
// Expose this graphql to your route of choice, /sandbox for an example
get("/sandbox") {
respondHtml(html)
}
The builtin integrations provide helper functions for this:
Last modified: 08 November 2024