@Transactional
@RestController
@RequestMapping(value="/graphql")
public class GraphqlController
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GraphqlController.Request
Request model
|
| Constructor and Description |
|---|
GraphqlController(GraphqlSchemaService schemaService,
net.nemerosa.ontrack.graphql.service.GraphQLService graphQLService) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Callable<org.springframework.http.ResponseEntity<com.fasterxml.jackson.databind.JsonNode>> |
get(java.lang.String query,
java.lang.String variables,
java.lang.String operationName)
GET end point
|
java.util.concurrent.Callable<org.springframework.http.ResponseEntity<com.fasterxml.jackson.databind.JsonNode>> |
post(java.lang.String input)
POST end point
|
graphql.ExecutionResult |
request(GraphqlController.Request request)
Request execution
|
com.fasterxml.jackson.databind.JsonNode |
requestAsJson(GraphqlController.Request request)
Request execution (JSON)
|
@Autowired public GraphqlController(GraphqlSchemaService schemaService, net.nemerosa.ontrack.graphql.service.GraphQLService graphQLService)
@RequestMapping(method=GET)
@Transactional
public java.util.concurrent.Callable<org.springframework.http.ResponseEntity<com.fasterxml.jackson.databind.JsonNode>> get(@RequestParam
java.lang.String query,
@RequestParam(required=false)
java.lang.String variables,
@RequestParam(required=false)
java.lang.String operationName)
throws java.io.IOException
java.io.IOException@RequestMapping(method=POST)
@Transactional
public java.util.concurrent.Callable<org.springframework.http.ResponseEntity<com.fasterxml.jackson.databind.JsonNode>> post(@RequestBody
java.lang.String input)
throws java.io.IOException
java.io.IOExceptionpublic com.fasterxml.jackson.databind.JsonNode requestAsJson(GraphqlController.Request request)
public graphql.ExecutionResult request(GraphqlController.Request request)