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
add support for application/graphql-response+json content type (#1699)
### 📝 Description
Based on the accept header, spring server respond either with `application/json` (default) or `application/graphql-response+json` media type.
### 🔗 Related Issues
#1573
Copy file name to clipboardExpand all lines: servers/graphql-kotlin-spring-server/src/main/kotlin/com/expediagroup/graphql/server/spring/GraphQLRoutesConfiguration.kt
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2021 Expedia, Inc
2
+
* Copyright 2023 Expedia, Inc
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: servers/graphql-kotlin-spring-server/src/test/kotlin/com/expediagroup/graphql/server/spring/routes/RouteConfigurationIT.kt
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2022 Expedia, Inc
2
+
* Copyright 2023 Expedia, Inc
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -192,6 +192,19 @@ class RouteConfigurationIT(@Autowired private val testClient: WebTestClient) {
192
192
.verifyGraphQLRoute("Hello POST application/graphql!")
193
193
}
194
194
195
+
@Test
196
+
fun`verify POST graphQL request with application graphql response content type`() {
0 commit comments