Commit Graph

50 Commits

Author SHA1 Message Date
Andy Wilkinson
d58b32cef0 Upgrade to compatibility test plugin 0.0.3
Closes gh-935
2024-09-30 11:05:38 +01:00
Andy Wilkinson
609bf21ef4 Use Spring Framework 6.1.x by default
Closes gh-941
2024-09-30 10:06:42 +01:00
Andy Wilkinson
cf451c940f Fix compatibility problems with Spring Framework 6.2
Fixes gh-934
2024-07-18 07:49:08 +01:00
Andy Wilkinson
9743b45d28 Start using 0.0.3 snapshots of the compatibility test plugin
See gh-935
2024-07-18 07:47:47 +01:00
Andy Wilkinson
c69e2176e4 Add compatibility testing for Framework 6.1
Closes gh-905
2023-11-14 10:18:37 +00:00
Andy Wilkinson
88caf04379 Merge branch '2.0.x'
Closes gh-891
2023-05-11 17:56:16 +01:00
Andy Wilkinson
e741790f02 Upgrade to Spring Java Format 0.0.38
Closes gh-890
2023-05-11 17:51:45 +01:00
Andy Wilkinson
c8cd6e1f76 Merge branch '2.0.x' 2023-01-10 18:10:19 +00:00
Andy Wilkinson
39e7730589 Update dependencies to remove dependency on release repo 2023-01-10 17:55:11 +00:00
Andy Wilkinson
96b00d33d9 Upgrade to Spring Framework 6.0.0-RC1
Closes gh-854
2022-10-15 16:32:18 +01:00
Andy Wilkinson
03b61ab075 Use Framework's HttpStatusCode to model response's status
Closes gh-848
2022-10-12 11:26:01 +01:00
Andy Wilkinson
b107d0e8ed Merge branch '2.0.x' 2022-10-12 10:54:37 +01:00
Andy Wilkinson
37c77f3285 Tolerate responses with non-standard status codes with WebTestClient
Closes gh-847
2022-10-12 10:50:40 +01:00
Andy Wilkinson
f5a629af34 Handle form and query parameters separately
Previously, form and query parameters were handled together as
request parameters. Howeer, request parameters are a server-side
construct that's specific to the servlet specification. As such
they're not appropriate for the client-side documentation that
Spring REST Docs aims to produce.

This commit replaces support for documenting request parameters
with support for documenting query paramters found in the query
string of the request's URI and for documenting form parameters
found in the form URL encoded body of the request.

Closes gh-832
2022-10-12 10:18:33 +01:00
Andy Wilkinson
d5522f5335 Polish "Add support for documenting request and response cookies"
See gh-592
2022-07-18 14:46:26 +01:00
clydebarrow
f72a9f1067 Add support for documenting request and response cookies
See gh-592
2022-07-18 11:16:16 +01:00
Andy Wilkinson
b4fd66ff9b Merge branch '2.0.x'
Closes gh-829
2022-07-15 12:43:51 +01:00
Andy Wilkinson
ebe70a91c7 Remove redundant throws declarations from non public API
Closes gh-828
2022-07-15 12:38:25 +01:00
Andy Wilkinson
4223f70102 Upgrade to Spring Framework 6 and Jakarta EE 9
Closes gh-750
Closes gh-748
2021-11-17 11:18:00 +00:00
Andy Wilkinson
68ff043fb3 Raise the minimum supported version of Java to 17
Closes gh-749
2021-11-17 11:18:00 +00:00
Andy Wilkinson
ea3ac32701 Make use of Gradle's support for test fixtures
Closes gh-756
2021-09-28 10:08:24 +01:00
Andy Wilkinson
c6e7b567e3 Stabilize WebTestClientRequestConverterTests
Closes gh-736
2021-07-09 19:45:26 +01:00
Andy Wilkinson
bf1bfc4075 Fix optional dependencies having compile scope in poms
Closes gh-729
2021-06-15 10:59:25 +01:00
Andy Wilkinson
09b21a91ed Adopt compatibility testing plugin
Closes gh-728
2021-05-21 18:08:07 +01:00
Andy Wilkinson
2ead1fb0d8 Upgrade to Gradle 6.8 and modernize the build
Closes gh-719
2021-04-28 20:59:20 +01:00
Andy Wilkinson
0d8eb26ce0 Use DefaultPartHttpMessageReader with Framework 5.3
Closes gh-703
2020-11-13 14:34:28 +00:00
Andy Wilkinson
3161f10b51 Start testing against Spring Framework 5.3
Closes gh-695
2020-09-02 11:17:22 +01:00
Andy Wilkinson
97ddf3dcec Fix handling of empty querty string parameters
Previously empty parameters in a query string were handled
inconsistently such that they sometimes had a value of "" in a list
and sometimes were represented as an empty list. This inconsistency
lead to the parameter appearing twice in the cURL request snippet.

This commit removes the inconsistency by always using an empty string
to represent an empty query parameter value.

Fixes gh-647
2019-10-04 18:34:56 +01:00
Andy Wilkinson
3a5cc58fab Test against Spring Framework 5.2 2019-09-15 15:03:50 +01:00
Andy Wilkinson
ef0973c548 Test against latest Framework 5.1 snapshot
This updates REST Docs to test against Framework's latest 5.1
snapshot. Due to a bug in the behaviour of HttpHeaders' key set [1],
HeaderRemovingOperationPreprocessor has been updated to no longer use
it when removing headers from a request or response prior to it being
documented.

[1] https://github.com/spring-projects/spring-framework/issues/22821
2019-09-14 17:38:29 +01:00
Andy Wilkinson
3597ebc35a Allow responses with non-standard status codes to be documented
Fixes gh-639
2019-09-12 17:03:21 +01:00
Andy Wilkinson
fce255695e Polish "Improve diagnostics for null configuration"
See gh-583
2019-08-30 17:14:42 +01:00
Dmytro Nosan
b5f2454c00 Improve diagnostics for null configuration
See gh-583
2019-08-30 17:09:27 +01:00
Andy Wilkinson
cc22dbfe26 Merge branch '1.2.x' 2019-08-30 11:20:34 +01:00
Andy Wilkinson
09a4323ed5 Merge branch '1.2.x' 2019-03-19 11:42:23 +00:00
Andy Wilkinson
fad2dff977 Merge branch '1.2.x' 2018-08-08 16:51:28 +01:00
Andy Wilkinson
ceb844183d Merge branch '1.2.x' 2018-08-08 12:27:43 +01:00
Andy Wilkinson
6a38ed26f3 Restore compatibility with Spring Framework 5.1 when reading request parts
Closes gh-528
2018-07-16 11:29:13 +01:00
Andy Wilkinson
cfb67291ed Update WebTestClient integration test for path parameters table title change
See gh-527
2018-07-16 11:08:22 +01:00
Andy Wilkinson
a60b87990b Tolerate changes to request body reading in Framework 5.1
Previously, MockHttpServletRequest allowed its body to be ready
multiple times using its InputStream. As of recent Spring Framework
5.1 snapshots, this is no longer the case.

This commit moves to directly accessing the request's content as a
byte array using getContentAsByteArray() which was introduced in
Framework 5.0.

Closes gh-515
2018-06-17 12:55:56 +01:00
Andy Wilkinson
1751910898 Polish 2018-04-04 09:41:31 +01:00
Andy Wilkinson
9bb3dda66e Use compatibility rather than equality to identify form encoded requests
Closes gh-496
2018-03-28 09:27:25 +01:00
Andy Wilkinson
7f91d5f2e5 Merge branch '1.2.x' 2018-03-27 14:13:45 +01:00
Andy Wilkinson
e84aa86171 Merge branch '1.2.x' 2018-03-27 13:01:20 +01:00
Andy Wilkinson
bb630c17b5 Include query string parameters for non-GET requests in Parameters
Previously, the query string was only parsed when converted a GET
request. This commit updates WebTestClientRequestConverter to
parse the query string for all requests irrespective of the method.

Closes gh-472
2018-02-15 12:19:58 +00:00
Andy Wilkinson
15ea8d1898 Access WebTestClient request Content-Type defensively
Closes gh-479
2018-02-15 11:49:41 +00:00
Andy Wilkinson
22dd1e75a4 Apply default scheme, host, and port to WebTestClient URIs
Closes gh-461
2017-11-20 09:50:49 +00:00
Andy Wilkinson
0f0769245d Add cookie handling to WebTestClient request and response converters
Closes gh-447
2017-11-12 17:31:51 +00:00
Andy Wilkinson
1a858a2e1f Build and test against Spring Framework 5.0.1.RELEASE
Closes gh-443
2017-10-30 10:20:25 +00:00
Andy Wilkinson
cfb1fbc85d Add support for using WebFlux's WebTestClient to document an API
Closes gh-384
2017-10-30 09:58:07 +00:00