java.lang.Object
com.atlassian.confluence.plugins.graphql.resource.GraphResource

@Consumes("application/json") @Produces("application/json") @Path("") public class GraphResource extends Object
REST API for GraphQL.
Since:
6.12.0
  • Constructor Details

    • GraphResource

      @Inject public GraphResource(ConfluenceGraphQLRestEndpoint endpoint, @Qualifier("darkFeatureManager") com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager, SettingsService settingsService)
  • Method Details

    • query

      @POST @Path("") public javax.ws.rs.core.Response query(String requestString, @QueryParam("query") String query, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletRequest request) throws Exception
      Throws:
      Exception
    • getGraphiqlApp

      @GET @Produces("text/html") @Path("") public javax.ws.rs.core.Response getGraphiqlApp() throws Exception
      Throws:
      Exception
    • getSchema

      @GET @Path("_schema") public javax.ws.rs.core.Response getSchema()
    • getSchema

      @GET @Path("_schema/{field}") public javax.ws.rs.core.Response getSchema(@PathParam("field") String field)
    • getSchema

      @GET @Path("_schema/{field1}/{field2}") public javax.ws.rs.core.Response getSchema(@PathParam("field1") String field1, @PathParam("field2") String field2)