Stéphane Nicoll
c72e32d3cb
Raise the minimum support version of Spring Framework to 7.0
...
See gh-955
2025-01-30 15:17:23 +00:00
Andy Wilkinson
272ed24de8
Use getUriTemplate of MockHttpServletRequest
...
Fixes gh-939
2024-09-13 10:34:32 +01:00
Stéphane Nicoll
737e6ea72a
Revert "Fix compatibility problems with Spring Framework 6.2"
...
This commit reverts most of cf451c9 as the underlying problem that it
fixed is no longer applicable.
See https://github.com/spring-projects/spring-framework/issues/33229
See gh-936
2024-07-18 11:39:57 +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
9b9cc208b5
Upgrade to Checkstyle 10.12.4
2024-01-24 14:25:44 +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
03b61ab075
Use Framework's HttpStatusCode to model response's status
...
Closes gh-848
2022-10-12 11:26:01 +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
ef6aa137e0
Merge branch '2.0.x'
...
Closes gh-826
2022-07-15 11:23:51 +01:00
Andy Wilkinson
ee522f6ce1
Polish "Suppress deprecation warnings in RestDocumentationRequestBuildersTests"
...
See gh-821
2022-07-15 10:42:13 +01:00
izeye
83fa37f44a
Suppress deprecation warnings in RestDocumentationRequestBuildersTests
...
See gh-821
2022-07-15 10:40:46 +01:00
Andy Wilkinson
5be36f5e9e
Merge branch '2.0.x'
2022-06-20 20:44:07 +01:00
izeye
07a6f26755
Polish
...
See gh-808
2022-06-20 20:42:16 +01:00
Andy Wilkinson
f6f45caf5c
Merge branch '2.0.x'
2022-06-20 16:40:06 +01:00
Andy Wilkinson
4cf5892015
Remove deprecated code
...
Closes gh-781
2022-01-17 13:44:14 +00:00
Andy Wilkinson
d7b5681b59
Merge branch '2.0.x'
2022-01-12 12:51:52 +00:00
Andy Wilkinson
a0dd2f0c2e
Remove test dependency on Spring HATEOAS
2022-01-12 12:48:36 +00:00
Andy Wilkinson
5dd1bd4beb
Merge branch '2.0.x'
2022-01-10 10:55:24 +00:00
Andy Wilkinson
350a4c65e3
Align fileUpload and multipart methods with MockMvc
...
Closes gh-770
2022-01-10 10:54:12 +00:00
Andy Wilkinson
da98852d53
Upgrade to Spring Java Format 0.0.29
2021-11-17 11:18:00 +00: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
ea3ac32701
Make use of Gradle's support for test fixtures
...
Closes gh-756
2021-09-28 10:08:24 +01:00
Andy Wilkinson
513a0e9172
Tolerate breaking change in MockHttpServletRequestBuilder
...
Closes gh-675
2020-03-27 16:19:06 +00:00
Andy Wilkinson
1ee96bbb76
Make tests tolerate varying presence of Content-Length header
...
In Framework 5.2, the Content-Length is now provided by MockMvc. In
earlier versions it is not. This commit updates the tests to tolerate
this difference in behaviour so that the compatibility tests pass
again.
2019-12-18 17:43:35 +00: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
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
508b3d6593
Upgrade to Spring Java Format 0.0.15
2019-08-30 11:07:04 +01:00
Andy Wilkinson
09a4323ed5
Merge branch '1.2.x'
2019-03-19 11:42:23 +00:00
Andy Wilkinson
3282a798cb
Merge branch '1.1.x' into 1.2.x
2019-03-19 11:35:06 +00:00
Andy Wilkinson
f7e61013bb
Merge branch '1.0.x' into 1.1.x
2019-03-19 11:24:34 +00:00
Andy Wilkinson
75132b537a
Use HTTPS to link to Apache license
2019-03-19 11:21:34 +00:00
Andy Wilkinson
fad2dff977
Merge branch '1.2.x'
2018-08-08 16:51:28 +01:00
Andy Wilkinson
244a734232
Adopt Spring Java Format for code formatting and style
2018-08-08 14:08:15 +01:00
Andy Wilkinson
ceb844183d
Merge branch '1.2.x'
2018-08-08 12:27:43 +01:00
Andy Wilkinson
7431426cf3
Update tests to use AssertJ
...
Closes gh-537
2018-08-08 11:22:57 +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
7f91d5f2e5
Merge branch '1.2.x'
2018-03-27 14:13:45 +01:00
Johnny Lim
da64c55fce
Add HTTP method option unconditionally in curl command
...
Closes gh-488
2018-03-27 14:07:47 +01:00
Andy Wilkinson
e84aa86171
Merge branch '1.2.x'
2018-03-27 13:01:20 +01:00
Andy Wilkinson
95c4234c99
Format core code with Eclipse Oxygen's formatter
2018-03-27 12:53:34 +01:00
Andy Wilkinson
eed90c0b9a
Polish "Add support for configuring default request and response preprocessors"
...
Closes gh-424
2017-10-27 12:09:56 +01:00
Filip Hrisafov
4f8b173836
Add support for configuring default request and response preprocessors
...
See gh-424
2017-10-27 12:09:56 +01:00