Skip to content

Commit ed5124c

Browse files
authored
Update README.md
1 parent 3010e97 commit ed5124c

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,34 @@ repositories {
1616
}
1717
1818
dependencies {
19-
compile 'com.graphql-java:graphql-java-servlet:2.0.0'
19+
compile 'com.graphql-java:graphql-java-servlet:2.1.0'
2020
}
2121
```
2222

2323
```xml
2424
<dependency>
2525
<groupId>com.graphql-java</groupId>
2626
<artifactId>graphql-java-servlet</artifactId>
27-
<version>2.0.0</version>
27+
<version>2.1.0</version>
2828
</dependency>
2929
```
3030

3131
# Usage
3232

33-
The servlet supports both GET and POST. For GET requests, query parameters are read.
34-
In POST, plain request body containing JSON is supported, as well as a multipart upload with a part called 'graphql' containing JSON.
35-
36-
All methods expect the following fields:
37-
* query
38-
* variables (optional)
39-
* operationName (optional)
33+
The servlet supports the following request formats:
34+
* GET request with query parameters:
35+
* query
36+
* operationName (optional)
37+
* variables (optional)
38+
* POST body JSON object with fields:
39+
* query
40+
* operationName (optional)
41+
* variables (optional)
42+
* POST multipart part named "graphql" containing JSON object with fields:
43+
* query
44+
* operationName (optional)
45+
* variables (optional)
46+
* POST multipart parts named "query", "operationName" (optional), and "variables" (optional)
4047

4148
## Standalone servlet
4249

0 commit comments

Comments
 (0)