You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -73,6 +75,7 @@ Snapshot versions of the current `master` branch are availble on JFrog. Check th
73
75
### Build with Gradle
74
76
75
77
Add the Snapshot repository:
78
+
76
79
```gradle
77
80
repositories {
78
81
mavenCentral()
@@ -83,6 +86,7 @@ repositories {
83
86
### Build with Maven
84
87
85
88
Add the Snapshot repository:
89
+
86
90
```xml
87
91
<repositories>
88
92
<repository>
@@ -98,27 +102,29 @@ Add the Snapshot repository:
98
102
```
99
103
100
104
## Usage
101
-
105
+
102
106
The servlet supports the following request formats:
103
-
* GET request to `../schema.json`: Get the result of an introspection query.
104
-
* GET request with query parameters (query only, no mutation):
105
-
* query
106
-
* operationName (optional)
107
-
* variables (optional)
108
-
* POST body JSON object with fields:
109
-
* query
110
-
* operationName (optional)
111
-
* variables (optional)
112
-
* POST multipart part named "graphql" containing JSON object with fields:
113
-
* query
114
-
* operationName (optional)
115
-
* variables (optional)
116
-
* POST multipart parts named "query", "operationName" (optional), and "variables" (optional)
117
-
* POST with Content Type "application/graphql" will treat the HTTP POST body contents as the GraphQL query string
118
-
107
+
108
+
- GET request to `../schema.json`: Get the result of an introspection query.
109
+
- GET request with query parameters (query only, no mutation):
110
+
- query
111
+
- operationName (optional)
112
+
- variables (optional)
113
+
- POST body JSON object with fields:
114
+
- query
115
+
- operationName (optional)
116
+
- variables (optional)
117
+
- POST multipart part named "graphql" containing JSON object with fields:
118
+
- query
119
+
- operationName (optional)
120
+
- variables (optional)
121
+
- POST multipart parts named "query", "operationName" (optional), and "variables" (optional)
122
+
- POST with Content Type "application/graphql" will treat the HTTP POST body contents as the GraphQL query string
123
+
119
124
## Spring Framework support
120
125
121
126
To use the servlet with Spring Framework, either use the [Spring Boot starter](https://www.graphql-java-kickstart.com/spring-boot/) or simply define a `ServletRegistrationBean` in a web app:
Subscriptions over WebSocket are fully supported within Spring Boot, but may require some work if you're using another
132
-
framework. There is an example [here](https://github.com/graphql-java-kickstart/samples/tree/master/subscription-with-authentication).
133
-
Internally, [JSR 356](https://www.oracle.com/technical-resources/articles/java/jsr356.html) is used for WebSocket
137
+
Subscriptions over WebSocket are fully supported within Spring Boot, but may require some work if you're using another
138
+
framework. There is an example [here](https://github.com/graphql-java-kickstart/samples/tree/master/subscription-with-authentication).
139
+
Internally, [JSR 356](https://www.oracle.com/technical-resources/articles/java/jsr356.html) is used for WebSocket
134
140
support. The endpoint is [GraphQLWebSocketServlet](https://github.com/graphql-java-kickstart/graphql-java-servlet/blob/38af304a9da1a57ac7475098b7fccec1b063646b/graphql-java-servlet/src/main/java/graphql/kickstart/servlet/GraphQLWebsocketServlet.java).
0 commit comments