├── .gitignore
├── .pre-commit-config.yaml
├── .travis.yml
├── CHANGELOG.md
├── LICENSE
├── README.md
├── graphql-common
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── networknt
│ │ │ └── graphql
│ │ │ └── common
│ │ │ ├── GraphqlConfig.java
│ │ │ ├── GraphqlConstants.java
│ │ │ ├── GraphqlUtil.java
│ │ │ ├── InstrumentationLoader.java
│ │ │ └── InstrumentationProvider.java
│ └── resources
│ │ └── config
│ │ └── graphql.yml
│ └── test
│ ├── java
│ └── com
│ │ └── networknt
│ │ └── graphql
│ │ └── common
│ │ └── GraphqlUtilTest.java
│ └── resources
│ └── logback-test.xml
├── graphql-router
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── networknt
│ │ │ └── graphql
│ │ │ └── router
│ │ │ ├── ExecutionStrategyProvider.java
│ │ │ ├── GraphqlCustomHandler.java
│ │ │ ├── GraphqlEndpointSource.java
│ │ │ ├── GraphqlRouter.java
│ │ │ ├── RenderGraphiQL.java
│ │ │ ├── SchemaProvider.java
│ │ │ ├── handlers
│ │ │ ├── GraphqlGetHandler.java
│ │ │ ├── GraphqlOptionsHandler.java
│ │ │ ├── GraphqlPathHandler.java
│ │ │ ├── GraphqlPostHandler.java
│ │ │ ├── GraphqlSubscriptionHandler.java
│ │ │ └── GraphqlSubscriptionWrapper.java
│ │ │ └── models
│ │ │ └── QueryParameters.java
│ └── resources
│ │ └── config
│ │ ├── graphiql-subscriptions-fetcher.js
│ │ └── graphiql.html
│ └── test
│ ├── java
│ └── com
│ │ └── networknt
│ │ └── graphql
│ │ └── router
│ │ └── GraphqlEndpointSourceTest.java
│ └── resources
│ └── logback-test.xml
├── graphql-security
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── networknt
│ │ │ └── graphql
│ │ │ └── security
│ │ │ └── JwtVerifyHandler.java
│ └── resources
│ │ └── config
│ │ ├── graphql-security.yml
│ │ ├── primary.crt
│ │ └── secondary.crt
│ └── test
│ ├── java
│ └── com
│ │ └── networknt
│ │ └── graphql
│ │ └── security
│ │ └── JwtVerifyHandlerTest.java
│ └── resources
│ ├── config
│ ├── client.truststore
│ └── values.yml
│ └── logback-test.xml
├── graphql-validator
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── networknt
│ │ │ └── graphql
│ │ │ └── validator
│ │ │ ├── ValidatorConfig.java
│ │ │ └── ValidatorHandler.java
│ └── resources
│ │ └── config
│ │ └── graphql-validator.yml
│ └── test
│ ├── java
│ └── com
│ │ └── networknt
│ │ └── graphql
│ │ └── validator
│ │ └── ValidatorHandlerTest.java
│ └── resources
│ ├── config
│ └── graphql-validator.yml
│ └── logback-test.xml
└── pom.xml
/.gitignore:
--------------------------------------------------------------------------------
1 | target/
2 | bower_components/
3 | node_modules/
4 | dist/
5 | .idea/
6 | .tmp/
7 | .project
8 | .classpath
9 | .settings
10 | .metadata/
11 | *.iml
12 | *.log
13 | *.tmp
14 | *.zip
15 | *.bak
16 | *.versionsBackup
17 |
18 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
19 | hs_err_pid*
20 |
--------------------------------------------------------------------------------
/.pre-commit-config.yaml:
--------------------------------------------------------------------------------
1 | repos:
2 | - repo: https://github.com/pre-commit/pre-commit-hooks
3 | rev: v5.0.0
4 | hooks:
5 | - id: trailing-whitespace
6 | - id: end-of-file-fixer
7 | - id: check-yaml
8 | - id: check-added-large-files
9 | - repo: https://github.com/networknt/pre-commit-hook-keyword
10 | rev: f17c4de14fc24420f6768c19cad06ba03af06d86
11 | hooks:
12 | - id: keywordscan
13 | args: ["--keywords=c3VubGlmZQ==,Y2liYw==,c3VuIGxpZmU="]
14 | types: ["text"]
15 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: java
2 | cache:
3 | directories:
4 | - $HOME/.m2
5 | jdk:
6 | - openjdk11
7 | branches:
8 | only:
9 | - master
10 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | ## [2.2.2](https://github.com/networknt/light-graphql-4j/tree/2.2.2) (2025-06-05)
4 |
5 |
6 | **Merged pull requests:**
7 |
8 |
9 |
10 |
11 | ## [2.2.1](https://github.com/networknt/light-graphql-4j/tree/2.2.1) (2025-03-22)
12 |
13 |
14 | **Merged pull requests:**
15 |
16 |
17 |
18 |
19 | ## [2.2.0](https://github.com/networknt/light-graphql-4j/tree/2.2.0) (2025-02-12)
20 |
21 |
22 | **Merged pull requests:**
23 |
24 |
25 |
26 |
27 | ## [2.1.37](https://github.com/networknt/light-graphql-4j/tree/2.1.37) (2024-09-20)
28 |
29 |
30 | **Merged pull requests:**
31 |
32 |
33 | ## [2.1.36](https://github.com/networknt/light-graphql-4j/tree/2.1.36) (2024-08-27)
34 |
35 |
36 | **Merged pull requests:**
37 |
38 |
39 | ## [2.1.35](https://github.com/networknt/light-graphql-4j/tree/2.1.35) (2024-08-17)
40 |
41 |
42 | **Merged pull requests:**
43 |
44 |
45 | - fixes \#122 update test cases to add use sig for the jwk response [\#123](https://github.com/networknt/light-graphql-4j/pull/123) ([stevehu](https://github.com/stevehu))
46 | ## [2.1.34](https://github.com/networknt/light-graphql-4j/tree/2.1.34) (2024-06-22)
47 |
48 |
49 | **Merged pull requests:**
50 |
51 |
52 | - fixes \#120 add client.truststore in test config [\#121](https://github.com/networknt/light-graphql-4j/pull/121) ([stevehu](https://github.com/stevehu))
53 | - [pre-commit.ci] pre-commit autoupdate [\#119](https://github.com/networknt/light-graphql-4j/pull/119) ([pre-commit-ci](https://github.com/apps/pre-commit-ci))
54 |
55 |
56 | ## [2.1.33](https://github.com/networknt/light-graphql-4j/tree/2.1.33) (2024-03-31)
57 |
58 |
59 | **Merged pull requests:**
60 |
61 |
62 |
63 |
64 | ## [2.1.32](https://github.com/networknt/light-graphql-4j/tree/2.1.32) (2024-02-27)
65 |
66 |
67 | **Merged pull requests:**
68 |
69 |
70 | - [pre-commit.ci] pre-commit autoupdate [\#118](https://github.com/networknt/light-graphql-4j/pull/118) ([pre-commit-ci](https://github.com/apps/pre-commit-ci))
71 | - fixes \#116 add pre-commit hook and apply it [\#117](https://github.com/networknt/light-graphql-4j/pull/117) ([stevehu](https://github.com/stevehu))
72 | - fixes \#114 Use NoneDecryptedInstance to load the config for registerM… [\#115](https://github.com/networknt/light-graphql-4j/pull/115) ([stevehu](https://github.com/stevehu))
73 |
74 |
75 | ## [2.1.31](https://github.com/networknt/light-graphql-4j/tree/2.1.31) (2024-01-16)
76 |
77 |
78 | **Merged pull requests:**
79 |
80 |
81 | - fixes \#112 Fix test cases by adding a new server2 for jwks endpoint [\#113](https://github.com/networknt/light-graphql-4j/pull/113) ([stevehu](https://github.com/stevehu))
82 | - fixes \#110 update test cases to use jwks endpoint and add skipPathPre… [\#111](https://github.com/networknt/light-graphql-4j/pull/111) ([stevehu](https://github.com/stevehu))
83 |
84 |
85 | ## [2.1.30](https://github.com/networknt/light-graphql-4j/tree/2.1.30) (2023-11-21)
86 |
87 |
88 | **Merged pull requests:**
89 |
90 |
91 |
92 |
93 | ## [2.1.29](https://github.com/networknt/light-graphql-4j/tree/2.1.29) (2023-11-19)
94 |
95 |
96 | **Merged pull requests:**
97 |
98 |
99 | - fixes \#107 refactor module registry to add config name [\#108](https://github.com/networknt/light-graphql-4j/pull/108) ([stevehu](https://github.com/stevehu))
100 | - fixes \#105 sync the graphql-security.yml with the security.yml in lig… [\#106](https://github.com/networknt/light-graphql-4j/pull/106) ([stevehu](https://github.com/stevehu))
101 |
102 |
103 | ## [2.1.28](https://github.com/networknt/light-graphql-4j/tree/2.1.28) (2023-10-24)
104 |
105 |
106 | **Merged pull requests:**
107 |
108 |
109 |
110 |
111 | ## [2.1.27](https://github.com/networknt/light-graphql-4j/tree/2.1.27) (2023-10-04)
112 |
113 |
114 | **Merged pull requests:**
115 |
116 |
117 |
118 |
119 | ## [2.1.26](https://github.com/networknt/light-graphql-4j/tree/2.1.26) (2023-08-17)
120 |
121 |
122 | **Merged pull requests:**
123 |
124 |
125 | ## [2.1.25](https://github.com/networknt/light-graphql-4j/tree/2.1.25) (2023-08-08)
126 |
127 |
128 | **Merged pull requests:**
129 |
130 |
131 |
132 |
133 | ## [2.1.24](https://github.com/networknt/light-graphql-4j/tree/2.1.24) (2023-08-07)
134 |
135 |
136 | **Merged pull requests:**
137 |
138 |
139 |
140 |
141 | ## [2.1.23](https://github.com/networknt/light-graphql-4j/tree/2.1.23) (2023-07-11)
142 |
143 |
144 | **Merged pull requests:**
145 |
146 |
147 |
148 |
149 | ## [2.1.22](https://github.com/networknt/light-graphql-4j/tree/2.1.22) (2023-06-22)
150 |
151 |
152 | **Merged pull requests:**
153 |
154 |
155 |
156 |
157 | ## [2.1.21](https://github.com/networknt/light-graphql-4j/tree/2.1.21) (2023-06-22)
158 |
159 |
160 | **Merged pull requests:**
161 |
162 |
163 |
164 |
165 | ## [2.1.20](https://github.com/networknt/light-graphql-4j/tree/2.1.20) (2023-06-17)
166 |
167 |
168 | **Merged pull requests:**
169 |
170 |
171 | ## [2.1.19](https://github.com/networknt/light-graphql-4j/tree/2.1.19) (2023-06-05)
172 |
173 |
174 | **Merged pull requests:**
175 |
176 |
177 |
178 |
179 | ## [2.1.18](https://github.com/networknt/light-graphql-4j/tree/2.1.18) (2023-05-06)
180 |
181 |
182 | **Merged pull requests:**
183 |
184 |
185 |
186 |
187 | ## [2.1.17](https://github.com/networknt/light-graphql-4j/tree/2.1.17) (2023-05-05)
188 |
189 |
190 | **Merged pull requests:**
191 |
192 |
193 | ## [2.1.16](https://github.com/networknt/light-graphql-4j/tree/2.1.16) (2023-04-28)
194 |
195 |
196 | **Merged pull requests:**
197 |
198 |
199 |
200 |
201 | ## [2.1.15](https://github.com/networknt/light-graphql-4j/tree/2.1.15) (2023-04-19)
202 |
203 |
204 | **Merged pull requests:**
205 |
206 |
207 | ## [2.1.14](https://github.com/networknt/light-graphql-4j/tree/2.1.14) (2023-04-19)
208 |
209 |
210 | **Merged pull requests:**
211 |
212 |
213 |
214 |
215 | ## [2.1.13](https://github.com/networknt/light-graphql-4j/tree/2.1.13) (2023-04-19)
216 |
217 |
218 | **Merged pull requests:**
219 |
220 |
221 | ## [2.1.12](https://github.com/networknt/light-graphql-4j/tree/2.1.12) (2023-04-14)
222 |
223 |
224 | **Merged pull requests:**
225 |
226 |
227 |
228 |
229 | ## [2.1.11](https://github.com/networknt/light-graphql-4j/tree/2.1.11) (2023-04-10)
230 |
231 |
232 | **Merged pull requests:**
233 |
234 |
235 | ## [2.1.10](https://github.com/networknt/light-graphql-4j/tree/2.1.10) (2023-04-06)
236 |
237 |
238 | **Merged pull requests:**
239 |
240 |
241 | ## [2.1.9](https://github.com/networknt/light-graphql-4j/tree/2.1.9) (2023-03-30)
242 |
243 |
244 | **Merged pull requests:**
245 |
246 |
247 |
248 |
249 | ## [2.1.8](https://github.com/networknt/light-graphql-4j/tree/2.1.8) (2023-03-06)
250 |
251 |
252 | **Merged pull requests:**
253 |
254 |
255 | - fixes \#103 update the JwtVerifyHandler to get the token from the auth… [\#104](https://github.com/networknt/light-graphql-4j/pull/104) ([stevehu](https://github.com/stevehu))
256 | ## [2.1.7](https://github.com/networknt/light-graphql-4j/tree/2.1.7) (2023-02-14)
257 |
258 |
259 | **Merged pull requests:**
260 |
261 |
262 |
263 |
264 | ## [2.1.6](https://github.com/networknt/light-graphql-4j/tree/2.1.6) (2023-02-06)
265 |
266 |
267 | **Merged pull requests:**
268 |
269 |
270 | ## [2.1.5](https://github.com/networknt/light-graphql-4j/tree/2.1.5) (2023-01-04)
271 |
272 |
273 | **Merged pull requests:**
274 |
275 |
276 | - fixes \#101 update JwtVerifyHandler for the new signature [\#102](https://github.com/networknt/light-graphql-4j/pull/102) ([stevehu](https://github.com/stevehu))
277 | - fixes \#99 add skipVerifyScopeWithoutSpec flag to graphql-security.yml [\#100](https://github.com/networknt/light-graphql-4j/pull/100) ([stevehu](https://github.com/stevehu))
278 | - fixes \#97 update openapi-security.yml to add jwtCacheFullSize [\#98](https://github.com/networknt/light-graphql-4j/pull/98) ([stevehu](https://github.com/stevehu))
279 | ## [2.1.4](https://github.com/networknt/light-graphql-4j/tree/2.1.4) (2022-11-30)
280 |
281 |
282 | **Merged pull requests:**
283 |
284 |
285 | ## [2.1.3](https://github.com/networknt/light-graphql-4j/tree/2.1.3) (2022-11-10)
286 |
287 |
288 | **Merged pull requests:**
289 |
290 |
291 | ## [2.1.2](https://github.com/networknt/light-graphql-4j/tree/2.1.2) (2022-10-22)
292 |
293 |
294 | **Merged pull requests:**
295 |
296 |
297 | - fixes \#91 pass in request path to verifyJwt to support mulitple OAuth… [\#92](https://github.com/networknt/light-graphql-4j/pull/92) ([stevehu](https://github.com/stevehu))
298 | - fixes \#89 update graphql-security.yml to use JsonWebKeySet for keyRes… [\#90](https://github.com/networknt/light-graphql-4j/pull/90) ([stevehu](https://github.com/stevehu))
299 | - fixes \#87 add providerId to the security.yml for oauth key service [\#88](https://github.com/networknt/light-graphql-4j/pull/88) ([stevehu](https://github.com/stevehu))
300 | - fixes \#85 externalize the graphql-validator.yml in the default folder [\#86](https://github.com/networknt/light-graphql-4j/pull/86) ([stevehu](https://github.com/stevehu))
301 | - fixes \#83 Update JwtVerifierHandler to use SecurityConfig [\#84](https://github.com/networknt/light-graphql-4j/pull/84) ([stevehu](https://github.com/stevehu))
302 | ## [2.1.1](https://github.com/networknt/light-graphql-4j/tree/2.1.1) (2022-04-26)
303 |
304 |
305 | **Merged pull requests:**
306 |
307 |
308 | ## [2.1.0](https://github.com/networknt/light-graphql-4j/tree/2.1.0) (2022-02-27)
309 |
310 |
311 | **Merged pull requests:**
312 |
313 |
314 | - custom response handling [\#81](https://github.com/networknt/light-graphql-4j/pull/81) ([wokere](https://github.com/wokere))
315 |
316 |
317 | ## [2.0.32](https://github.com/networknt/light-graphql-4j/tree/2.0.32) (2021-10-19)
318 |
319 |
320 | **Merged pull requests:**
321 |
322 |
323 |
324 |
325 | ## [2.0.31](https://github.com/networknt/light-graphql-4j/tree/2.0.31) (2021-09-22)
326 |
327 |
328 | **Merged pull requests:**
329 |
330 |
331 | ## [2.0.30](https://github.com/networknt/light-graphql-4j/tree/2.0.30) (2021-08-23)
332 |
333 |
334 | **Merged pull requests:**
335 |
336 |
337 | ## [2.0.29](https://github.com/networknt/light-graphql-4j/tree/2.0.29) (2021-07-25)
338 |
339 |
340 | **Merged pull requests:**
341 |
342 |
343 |
344 |
345 | ## [2.0.28](https://github.com/networknt/light-graphql-4j/tree/2.0.28) (2021-06-27)
346 |
347 |
348 | **Merged pull requests:**
349 |
350 |
351 | ## [2.0.27](https://github.com/networknt/light-graphql-4j/tree/2.0.27) (2021-05-25)
352 |
353 |
354 | **Merged pull requests:**
355 |
356 |
357 | ## [2.0.26](https://github.com/networknt/light-graphql-4j/tree/2.0.26) (2021-04-27)
358 |
359 |
360 | **Merged pull requests:**
361 |
362 |
363 | ## [2.0.25](https://github.com/networknt/light-graphql-4j/tree/2.0.25) (2021-03-28)
364 |
365 |
366 | **Merged pull requests:**
367 |
368 |
369 |
370 |
371 | ## [2.0.24](https://github.com/networknt/light-graphql-4j/tree/2.0.24) (2021-02-24)
372 |
373 |
374 | **Merged pull requests:**
375 |
376 |
377 | - Bump jackson-databind from 2.10.4 to 2.10.5.1 [\#79](https://github.com/networknt/light-graphql-4j/pull/79) ([dependabot](https://github.com/apps/dependabot))
378 | ## [2.0.23](https://github.com/networknt/light-graphql-4j/tree/2.0.23) (2021-01-29)
379 |
380 |
381 | **Merged pull requests:**
382 |
383 |
384 | ## [2.0.22](https://github.com/networknt/light-graphql-4j/tree/2.0.22) (2020-12-22)
385 |
386 |
387 | **Merged pull requests:**
388 |
389 |
390 |
391 |
392 | ## [2.0.21](https://github.com/networknt/light-graphql-4j/tree/2.0.21) (2020-11-25)
393 |
394 |
395 | **Merged pull requests:**
396 |
397 |
398 |
399 |
400 | ## [2.0.20](https://github.com/networknt/light-graphql-4j/tree/2.0.20) (2020-11-05)
401 |
402 |
403 | **Merged pull requests:**
404 |
405 |
406 | ## [2.0.19](https://github.com/networknt/light-graphql-4j/tree/2.0.19) (2020-11-01)
407 |
408 |
409 | **Merged pull requests:**
410 |
411 |
412 | ## [2.0.18](https://github.com/networknt/light-graphql-4j/tree/2.0.18) (2020-10-01)
413 |
414 |
415 | **Merged pull requests:**
416 |
417 |
418 |
419 |
420 | ## [2.0.17](https://github.com/networknt/light-graphql-4j/tree/2.0.17) (2020-08-28)
421 |
422 |
423 | **Merged pull requests:**
424 |
425 |
426 | ## [2.0.16](https://github.com/networknt/light-graphql-4j/tree/2.0.16) (2020-08-01)
427 |
428 |
429 | **Merged pull requests:**
430 |
431 |
432 | ## [2.0.15](https://github.com/networknt/light-graphql-4j/tree/2.0.15) (2020-07-01)
433 |
434 |
435 | **Merged pull requests:**
436 |
437 |
438 | ## [2.0.14](https://github.com/networknt/light-graphql-4j/tree/2.0.14) (2020-05-29)
439 |
440 |
441 | **Merged pull requests:**
442 |
443 |
444 | ## [2.0.13](https://github.com/networknt/light-graphql-4j/tree/2.0.13) (2020-05-01)
445 |
446 |
447 | **Merged pull requests:**
448 |
449 |
450 | ## [2.0.12](https://github.com/networknt/light-graphql-4j/tree/2.0.12) (2020-03-31)
451 |
452 |
453 | **Merged pull requests:**
454 |
455 |
456 | ## [2.0.11](https://github.com/networknt/light-graphql-4j/tree/2.0.11) (2020-02-29)
457 |
458 |
459 | **Merged pull requests:**
460 |
461 |
462 | ## [2.0.10](https://github.com/networknt/light-graphql-4j/tree/2.0.10) (2020-01-31)
463 |
464 |
465 | **Merged pull requests:**
466 |
467 |
468 |
469 |
470 | ## [2.0.9](https://github.com/networknt/light-graphql-4j/tree/2.0.9) (2019-12-30)
471 |
472 |
473 | **Merged pull requests:**
474 |
475 |
476 | ## [2.0.8](https://github.com/networknt/light-graphql-4j/tree/2.0.8) (2019-11-27)
477 |
478 |
479 | **Merged pull requests:**
480 |
481 |
482 | ## [2.0.7](https://github.com/networknt/light-graphql-4j/tree/2.0.7) (2019-10-26)
483 |
484 |
485 | **Merged pull requests:**
486 |
487 |
488 | ## [2.0.6](https://github.com/networknt/light-graphql-4j/tree/2.0.6) (2019-09-13)
489 |
490 |
491 | **Merged pull requests:**
492 |
493 |
494 | ## [2.0.5](https://github.com/networknt/light-graphql-4j/tree/2.0.5) (2019-08-30)
495 |
496 |
497 | **Merged pull requests:**
498 |
499 |
500 |
501 |
502 | ## [2.0.4](https://github.com/networknt/light-graphql-4j/tree/2.0.4) (2019-08-16)
503 |
504 |
505 | **Merged pull requests:**
506 |
507 |
508 | ## [2.0.3](https://github.com/networknt/light-graphql-4j/tree/2.0.3) (2019-07-31)
509 |
510 |
511 | **Merged pull requests:**
512 |
513 |
514 |
515 |
516 | ## [2.0.2](https://github.com/networknt/light-graphql-4j/tree/2.0.2) (2019-07-10)
517 |
518 |
519 | **Merged pull requests:**
520 |
521 |
522 | ## [2.0.1](https://github.com/networknt/light-graphql-4j/tree/2.0.1) (2019-06-13)
523 |
524 |
525 | **Merged pull requests:**
526 |
527 |
528 | ## [1.6.4](https://github.com/networknt/light-graphql-4j/tree/1.6.4) (2019-06-10)
529 |
530 |
531 | **Merged pull requests:**
532 |
533 |
534 | ## [1.6.2](https://github.com/networknt/light-graphql-4j/tree/1.6.2) (2019-05-17)
535 |
536 |
537 | **Merged pull requests:**
538 |
539 |
540 | ## [1.6.1](https://github.com/networknt/light-graphql-4j/tree/1.6.1) (2019-05-03)
541 |
542 |
543 | **Merged pull requests:**
544 |
545 |
546 | ## [1.6.0](https://github.com/networknt/light-graphql-4j/tree/1.6.0) (2019-04-05)
547 |
548 |
549 | **Merged pull requests:**
550 |
551 |
552 | ## [1.5.31](https://github.com/networknt/light-graphql-4j/tree/1.5.31) (2019-03-02)
553 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.30...1.5.31)
554 |
555 | ## [1.5.30](https://github.com/networknt/light-graphql-4j/tree/1.5.30) (2019-02-21)
556 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.29...1.5.30)
557 |
558 | ## [1.5.29](https://github.com/networknt/light-graphql-4j/tree/1.5.29) (2019-02-16)
559 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.28...1.5.29)
560 |
561 | ## [1.5.28](https://github.com/networknt/light-graphql-4j/tree/1.5.28) (2019-01-13)
562 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.27...1.5.28)
563 |
564 | ## [1.5.27](https://github.com/networknt/light-graphql-4j/tree/1.5.27) (2019-01-12)
565 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.25...1.5.27)
566 |
567 | ## [1.5.25](https://github.com/networknt/light-graphql-4j/tree/1.5.25) (2018-12-24)
568 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.24...1.5.25)
569 |
570 | ## [1.5.24](https://github.com/networknt/light-graphql-4j/tree/1.5.24) (2018-12-15)
571 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.23...1.5.24)
572 |
573 | ## [1.5.23](https://github.com/networknt/light-graphql-4j/tree/1.5.23) (2018-12-01)
574 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.22...1.5.23)
575 |
576 | ## [1.5.22](https://github.com/networknt/light-graphql-4j/tree/1.5.22) (2018-11-10)
577 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.21...1.5.22)
578 |
579 | ## [1.5.21](https://github.com/networknt/light-graphql-4j/tree/1.5.21) (2018-10-05)
580 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.20...1.5.21)
581 |
582 | ## [1.5.20](https://github.com/networknt/light-graphql-4j/tree/1.5.20) (2018-10-05)
583 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.19...1.5.20)
584 |
585 | **Closed issues:**
586 |
587 | - remove security.yml and add graphql-validator.yml [\#51](https://github.com/networknt/light-graphql-4j/issues/51)
588 |
589 | ## [1.5.19](https://github.com/networknt/light-graphql-4j/tree/1.5.19) (2018-09-22)
590 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.18...1.5.19)
591 |
592 | **Closed issues:**
593 |
594 | - create one and only one handler instance in GraphqlPathHandler [\#50](https://github.com/networknt/light-graphql-4j/issues/50)
595 | - switch to http-string module for HttpString headers constants [\#48](https://github.com/networknt/light-graphql-4j/issues/48)
596 |
597 | **Merged pull requests:**
598 |
599 | - Trivial GraphqlEndpointSource listing `/graphql@{get,post,options}`… [\#49](https://github.com/networknt/light-graphql-4j/pull/49) ([logi](https://github.com/logi))
600 | - Configurable Exectution Strategies [\#47](https://github.com/networknt/light-graphql-4j/pull/47) ([logi](https://github.com/logi))
601 |
602 | ## [1.5.18](https://github.com/networknt/light-graphql-4j/tree/1.5.18) (2018-08-16)
603 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.17...1.5.18)
604 |
605 | **Closed issues:**
606 |
607 | - flatten the config files into the same directory for k8s [\#46](https://github.com/networknt/light-graphql-4j/issues/46)
608 | - support specific GraphQL security and validator configuration [\#44](https://github.com/networknt/light-graphql-4j/issues/44)
609 | - upgrade to undertow 2.0.11.Final [\#43](https://github.com/networknt/light-graphql-4j/issues/43)
610 |
611 | **Merged pull requests:**
612 |
613 | - fixes \#44 support specific GraphQL security and validator configuration [\#45](https://github.com/networknt/light-graphql-4j/pull/45) ([stevehu](https://github.com/stevehu))
614 |
615 | ## [1.5.17](https://github.com/networknt/light-graphql-4j/tree/1.5.17) (2018-07-15)
616 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.16...1.5.17)
617 |
618 | ## [1.5.16](https://github.com/networknt/light-graphql-4j/tree/1.5.16) (2018-07-05)
619 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.15...1.5.16)
620 |
621 | ## [1.5.15](https://github.com/networknt/light-graphql-4j/tree/1.5.15) (2018-06-18)
622 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.14...1.5.15)
623 |
624 | **Closed issues:**
625 |
626 | - switch to default setExchangeStatus method for errors [\#42](https://github.com/networknt/light-graphql-4j/issues/42)
627 |
628 | ## [1.5.14](https://github.com/networknt/light-graphql-4j/tree/1.5.14) (2018-05-19)
629 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.13...1.5.14)
630 |
631 | **Closed issues:**
632 |
633 | - update VerifyJwt signature and security.yml [\#41](https://github.com/networknt/light-graphql-4j/issues/41)
634 | - Log error message on the server if validation error occurs [\#40](https://github.com/networknt/light-graphql-4j/issues/40)
635 | - Add Instrumentation to Config and PostHandler [\#38](https://github.com/networknt/light-graphql-4j/issues/38)
636 |
637 | ## [1.5.13](https://github.com/networknt/light-graphql-4j/tree/1.5.13) (2018-04-20)
638 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.12...1.5.13)
639 |
640 | **Merged pull requests:**
641 |
642 | - Adding support for injectable instrumentation \#38 [\#39](https://github.com/networknt/light-graphql-4j/pull/39) ([NicholasAzar](https://github.com/NicholasAzar))
643 |
644 | ## [1.5.12](https://github.com/networknt/light-graphql-4j/tree/1.5.12) (2018-04-08)
645 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.11...1.5.12)
646 |
647 | **Implemented enhancements:**
648 |
649 | - bump pom graphql-java to 8.0 [\#37](https://github.com/networknt/light-graphql-4j/issues/37)
650 |
651 | **Closed issues:**
652 |
653 | - remove unused version properties in pom.xml [\#36](https://github.com/networknt/light-graphql-4j/issues/36)
654 |
655 | ## [1.5.11](https://github.com/networknt/light-graphql-4j/tree/1.5.11) (2018-03-31)
656 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.10...1.5.11)
657 |
658 | **Closed issues:**
659 |
660 | - ensure that all responses have a valid status code [\#35](https://github.com/networknt/light-graphql-4j/issues/35)
661 |
662 | ## [1.5.10](https://github.com/networknt/light-graphql-4j/tree/1.5.10) (2018-03-02)
663 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.9...1.5.10)
664 |
665 | **Closed issues:**
666 |
667 | - add subject\_claims and access\_claims into auditInfo attachment [\#34](https://github.com/networknt/light-graphql-4j/issues/34)
668 |
669 | ## [1.5.9](https://github.com/networknt/light-graphql-4j/tree/1.5.9) (2018-02-21)
670 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.8...1.5.9)
671 |
672 | **Closed issues:**
673 |
674 | - enable travis ci work with master branch only [\#33](https://github.com/networknt/light-graphql-4j/issues/33)
675 | - return header conent-type with application/json for post handler [\#32](https://github.com/networknt/light-graphql-4j/issues/32)
676 |
677 | ## [1.5.8](https://github.com/networknt/light-graphql-4j/tree/1.5.8) (2018-01-10)
678 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.7...1.5.8)
679 |
680 | ## [1.5.7](https://github.com/networknt/light-graphql-4j/tree/1.5.7) (2018-01-09)
681 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.6...1.5.7)
682 |
683 | **Closed issues:**
684 |
685 | - GraphqlPostHandler does not return application json [\#28](https://github.com/networknt/light-graphql-4j/issues/28)
686 | - update README.md to link to document site [\#26](https://github.com/networknt/light-graphql-4j/issues/26)
687 | - clean up dependencies for all modules [\#25](https://github.com/networknt/light-graphql-4j/issues/25)
688 | - upgrade to graphql-java 6.0 with subscription [\#24](https://github.com/networknt/light-graphql-4j/issues/24)
689 |
690 | ## [1.5.6](https://github.com/networknt/light-graphql-4j/tree/1.5.6) (2017-12-28)
691 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.4...1.5.6)
692 |
693 | **Closed issues:**
694 |
695 | - Update default security.yml in graphql-security [\#23](https://github.com/networknt/light-graphql-4j/issues/23)
696 | - Maven build warnings [\#22](https://github.com/networknt/light-graphql-4j/issues/22)
697 |
698 | ## [1.5.4](https://github.com/networknt/light-graphql-4j/tree/1.5.4) (2017-11-21)
699 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.3...1.5.4)
700 |
701 | **Closed issues:**
702 |
703 | - Load schema provider from service module instead of Java service provider [\#21](https://github.com/networknt/light-graphql-4j/issues/21)
704 |
705 | ## [1.5.3](https://github.com/networknt/light-graphql-4j/tree/1.5.3) (2017-11-20)
706 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.2...1.5.3)
707 |
708 | ## [1.5.2](https://github.com/networknt/light-graphql-4j/tree/1.5.2) (2017-11-20)
709 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.1...1.5.2)
710 |
711 | ## [1.5.1](https://github.com/networknt/light-graphql-4j/tree/1.5.1) (2017-11-09)
712 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.5.0...1.5.1)
713 |
714 | ## [1.5.0](https://github.com/networknt/light-graphql-4j/tree/1.5.0) (2017-10-21)
715 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.4.6...1.5.0)
716 |
717 | **Closed issues:**
718 |
719 | - Upgrade dependencies and add maven-version [\#20](https://github.com/networknt/light-graphql-4j/issues/20)
720 |
721 | ## [1.4.6](https://github.com/networknt/light-graphql-4j/tree/1.4.6) (2017-09-24)
722 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.4.4...1.4.6)
723 |
724 | ## [1.4.4](https://github.com/networknt/light-graphql-4j/tree/1.4.4) (2017-09-21)
725 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.4.3...1.4.4)
726 |
727 | ## [1.4.3](https://github.com/networknt/light-graphql-4j/tree/1.4.3) (2017-09-10)
728 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.4.2...1.4.3)
729 |
730 | ## [1.4.2](https://github.com/networknt/light-graphql-4j/tree/1.4.2) (2017-08-31)
731 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.4.1...1.4.2)
732 |
733 | ## [1.4.1](https://github.com/networknt/light-graphql-4j/tree/1.4.1) (2017-08-30)
734 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.4.0...1.4.1)
735 |
736 | **Closed issues:**
737 |
738 | - Upgrade Undertow and Jackson to the newer version [\#19](https://github.com/networknt/light-graphql-4j/issues/19)
739 |
740 | ## [1.4.0](https://github.com/networknt/light-graphql-4j/tree/1.4.0) (2017-08-22)
741 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.3.5...1.4.0)
742 |
743 | **Closed issues:**
744 |
745 | - Replace Client with Http2Client in test cases and remove dependency of apache httpclient [\#18](https://github.com/networknt/light-graphql-4j/issues/18)
746 | - Upgrade to Undertow 1.4.18.Final and remove JsonPath from pom.xml [\#17](https://github.com/networknt/light-graphql-4j/issues/17)
747 |
748 | ## [1.3.5](https://github.com/networknt/light-graphql-4j/tree/1.3.5) (2017-08-01)
749 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.3.4...1.3.5)
750 |
751 | ## [1.3.4](https://github.com/networknt/light-graphql-4j/tree/1.3.4) (2017-07-08)
752 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.3.3...1.3.4)
753 |
754 | ## [1.3.3](https://github.com/networknt/light-graphql-4j/tree/1.3.3) (2017-06-14)
755 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.3.2...1.3.3)
756 |
757 | ## [1.3.2](https://github.com/networknt/light-graphql-4j/tree/1.3.2) (2017-06-14)
758 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.3.1...1.3.2)
759 |
760 | **Closed issues:**
761 |
762 | - Update security handler to populate AuditInfo exchange attachment for Audit and Metrics [\#16](https://github.com/networknt/light-graphql-4j/issues/16)
763 | - graphql-security should populate auditInfo in order to make metrics work. [\#15](https://github.com/networknt/light-graphql-4j/issues/15)
764 |
765 | ## [1.3.1](https://github.com/networknt/light-graphql-4j/tree/1.3.1) (2017-06-03)
766 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.3.0...1.3.1)
767 |
768 | **Closed issues:**
769 |
770 | - Upgrade to graphql-java 3.0.0 with IDL support in ligh-codegen [\#14](https://github.com/networknt/light-graphql-4j/issues/14)
771 |
772 | ## [1.3.0](https://github.com/networknt/light-graphql-4j/tree/1.3.0) (2017-05-06)
773 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.2.8...1.3.0)
774 |
775 | **Closed issues:**
776 |
777 | - Change the project name to light-graphql-4j as java is Oracle trademark [\#13](https://github.com/networknt/light-graphql-4j/issues/13)
778 |
779 | ## [1.2.8](https://github.com/networknt/light-graphql-4j/tree/1.2.8) (2017-05-02)
780 | [Full Changelog](https://github.com/networknt/light-graphql-4j/compare/1.2.7...1.2.8)
781 |
782 | **Closed issues:**
783 |
784 | - upgrade dependencies to the latest version [\#12](https://github.com/networknt/light-graphql-4j/issues/12)
785 |
786 | ## [1.2.7](https://github.com/networknt/light-graphql-4j/tree/1.2.7) (2017-03-28)
787 | **Fixed bugs:**
788 |
789 | - Get AssertionError if arguments map is null [\#10](https://github.com/networknt/light-graphql-4j/issues/10)
790 |
791 | **Closed issues:**
792 |
793 | - Handle query parameter is missing [\#9](https://github.com/networknt/light-graphql-4j/issues/9)
794 | - Support variables, operationName and pass exchange as context [\#8](https://github.com/networknt/light-graphql-4j/issues/8)
795 | - GraphiQL IntrospectionQuery is not rendered correctly [\#7](https://github.com/networknt/light-graphql-4j/issues/7)
796 | - Implement GraphiQL in get handler [\#6](https://github.com/networknt/light-graphql-4j/issues/6)
797 | - Add SchemaProvider interface so that the handlers can load schema with SPI. [\#5](https://github.com/networknt/light-graphql-4j/issues/5)
798 | - Implement graphql-common to share the configuration and static utility with simple dependencies [\#4](https://github.com/networknt/light-graphql-4j/issues/4)
799 | - Implement GraphQL validator [\#3](https://github.com/networknt/light-graphql-4j/issues/3)
800 | - Implement graphql-router [\#2](https://github.com/networknt/light-graphql-4j/issues/2)
801 | - Implement JWT token verification for GraphQL endpoint [\#1](https://github.com/networknt/light-graphql-4j/issues/1)
802 |
803 |
804 |
805 | \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
806 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | GraphQL framework based on light-4j
2 |
3 | [Stack Overflow](https://stackoverflow.com/questions/tagged/light-4j) |
4 | [Google Group](https://groups.google.com/forum/#!forum/light-4j) |
5 | [Gitter Chat](https://gitter.im/networknt/light-graphql-4j) |
6 | [Subreddit](https://www.reddit.com/r/lightapi/) |
7 | [Youtube Channel](https://www.youtube.com/channel/UCHCRMWJVXw8iB7zKxF55Byw) |
8 | [Documentation](https://doc.networknt.com/style/light-graphql-4j/) |
9 | [Contribution Guide](https://doc.networknt.com/contribute/) |
10 |
11 | [](https://travis-ci.org/networknt/light-graphql-4j)
12 |
13 | ## Components
14 |
15 | ### graphql-common
16 | This module controls the configuration for GraphQL service and share some static variables
17 | with other modules to make the dependencies much simpler.
18 |
19 | ### graphql-router
20 | This module provides RouteHandler and SchemaProvider interfaces and implement both GET and
21 | POST handlers for GraphQL.
22 |
23 | ## Middleware Handlers:
24 |
25 | ### graphql-security
26 | This is the handler that should be put before graphql-validator. There is no need to
27 | do any validation if JWT token does not exist in the request header.
28 |
29 | ### graphql-validator
30 | Basic request validation for the graphql path and methods. It is the first line of
31 | validation right after graphql-security and it doesn't have any knowledge about the
32 | graphql query parameter and body.
33 |
34 | ## Tutorial
35 |
36 | ### [Hello World](https://doc.networknt.com/tutorial/graphql/helloworld/)
37 |
38 | This is a very simple Hello World query to show you how to get GraphQL up and running with
39 | light-codegen without using GraphQL IDL.
40 |
41 | ### [Star Wars](https://doc.networknt.com/tutorial/graphql/starwars/)
42 |
43 | This is a similar example as Hello World with IDL to trigger the generation. It is utilize the
44 | star wars GraphQL IDL downloaded from the Internet.
45 |
46 | ### [Mutation](https://doc.networknt.com/tutorial/graphql/mutation/)
47 |
48 | This example shows you how to create a full blown GraphQL service with both query and mutation.
49 |
50 | ### [Mutation IDL](https://doc.networknt.com/tutorial/graphql/mutation-idl/)
51 |
52 | This is the same example like the mutation but is generated from a schema.
53 |
54 | ### [Relay Todo](https://doc.networknt.com/tutorial/graphql/relay-todo/)
55 |
56 | This is to show you how to build a GraphQL service that is working with Relayjs.
57 |
--------------------------------------------------------------------------------
/graphql-common/pom.xml:
--------------------------------------------------------------------------------
1 |
16 |
17 |
19 | 4.0.0
20 |
21 |
22 | com.networknt
23 | light-graphql-4j
24 | 2.2.3-SNAPSHOT
25 | ../pom.xml
26 |
27 |
28 | graphql-common
29 | jar
30 | graphql-common
31 | A shared utility module for GraphQL
32 |
33 |
34 |
35 | com.networknt
36 | config
37 |
38 |
39 | com.networknt
40 | service
41 |
42 |
43 | com.graphql-java
44 | graphql-java
45 |
46 |
47 | io.undertow
48 | undertow-core
49 |
50 |
51 | org.slf4j
52 | slf4j-api
53 |
54 |
55 |
56 | ch.qos.logback
57 | logback-classic
58 | test
59 |
60 |
61 | junit
62 | junit
63 | test
64 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/graphql-common/src/main/java/com/networknt/graphql/common/GraphqlConfig.java:
--------------------------------------------------------------------------------
1 | package com.networknt.graphql.common;
2 |
3 | /**
4 | * Main configuration class for graphql framework that defines the path for
5 | * graphql endpoint and if GraphiQL is enabled or not.
6 | *
7 | * @author Steve Hu
8 | */
9 | public class GraphqlConfig {
10 | private String path;
11 | private String subscriptionsPath;
12 | private boolean enableGraphiQL;
13 |
14 | public GraphqlConfig() {
15 | }
16 |
17 | public String getPath() {
18 | return path;
19 | }
20 |
21 | public void setPath(String path) {
22 | this.path = path;
23 | }
24 |
25 | public boolean isEnableGraphiQL() {
26 | return enableGraphiQL;
27 | }
28 |
29 | public void setEnableGraphiQL(boolean enableGraphiQL) {
30 | this.enableGraphiQL = enableGraphiQL;
31 | }
32 |
33 | public String getSubscriptionsPath() {
34 | return subscriptionsPath;
35 | }
36 |
37 | public void setSubscriptionsPath(String subscriptionsPath) {
38 | this.subscriptionsPath = subscriptionsPath;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/graphql-common/src/main/java/com/networknt/graphql/common/GraphqlConstants.java:
--------------------------------------------------------------------------------
1 | package com.networknt.graphql.common;
2 |
3 | public class GraphqlConstants {
4 |
5 | public static class GraphqlRouterConstants {
6 | public static final String GRAPHQL_WS_SUBPROTOCOL = "graphql-ws";
7 |
8 | public static final String GRAPHQL_RESPONSE_DATA_KEY = "data";
9 | public static final String GRAPHQL_RESPONSE_ERROR_KEY = "errors";
10 | public static final String GRAPHQL_RESPONSE_PAYLOAD_KEY = "payload";
11 |
12 | public static final String GRAPHQL_REQUEST_QUERY_KEY = "query";
13 | public static final String GRAPHQL_REQUEST_VARIABLES_KEY = "variables";
14 | public static final String GRAPHQL_REQUEST_OP_NAME_KEY = "operationName";
15 | }
16 |
17 | public static class GraphqlSubscriptionConstants {
18 | public static final String GRAPHQL_REQ_TYPE_KEY = "type";
19 | public static final String GRAPHQL_OP_ID_KEY = "id";
20 |
21 | // Taken from subscription-transport-ws@0.9.5
22 | public static final String GQL_CONNECTION_INIT = "connection_init";
23 | public static final String GQL_CONNECTION_ACK = "connection_ack";
24 | public static final String GQL_CONNECTION_ERROR = "connection_error";
25 | public static final String GQL_CONNECTION_KEEP_ALIVE = "ka";
26 | public static final String GQL_CONNECTION_TERMINATE = "connection_terminate";
27 | public static final String GQL_START = "start";
28 | public static final String GQL_DATA = "data";
29 | public static final String GQL_ERROR = "error";
30 | public static final String GQL_COMPLETE = "complete";
31 | public static final String GQL_STOP = "stop";
32 | public static final String SUBSCRIPTION_START = "subscription_start";
33 | public static final String SUBSCRIPTION_DATA = "subscription_data";
34 | public static final String SUBSCRIPTION_SUCCESS = "subscription_success";
35 | public static final String SUBSCRIPTION_FAIL = "subscription_fail";
36 | public static final String SUBSCRIPTION_END = "subscription_end";
37 | public static final String INIT = "init";
38 | public static final String INIT_SUCCESS = "init_success";
39 | public static final String INIT_FAIL = "init_fail";
40 | public static final String KEEP_ALIVE = "keepalive";
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/graphql-common/src/main/java/com/networknt/graphql/common/GraphqlUtil.java:
--------------------------------------------------------------------------------
1 | package com.networknt.graphql.common;
2 |
3 | import com.networknt.config.Config;
4 | import io.undertow.util.AttachmentKey;
5 |
6 | /**
7 | * A utility class that contains some static variables and static methods shared
8 | * by all other modules.
9 | *
10 | * @author Steve Hu
11 | */
12 | public class GraphqlUtil {
13 | public static final String CONFIG_NAME = "graphql";
14 |
15 | public static final AttachmentKey