spring-restdocs icon indicating copy to clipboard operation
spring-restdocs copied to clipboard

Test-driven documentation for RESTful services

Results 46 spring-restdocs issues
Sort by recently updated
recently updated
newest added

The following code produce a nice output in the type column, but It does not perform the assertion: ``` fieldWithPath("uid").type(Arrays.asList(JsonFieldType.STRING, JsonFieldType.NULL)); ``` Is there a better way to do it?...

type: enhancement

Since REST assured is based on a fluent API it would be awesome if Spring REST docs could provide a fluent (builder) API in addition to the varargs based approach....

type: enhancement

**Situation** In case that a REST Endpoint provide a binary content ex. `application/zip`. The generated curl request snippet should not contains the curl options `-i`. Because it include HTTP headers...

type: enhancement

Hi, Let's say we have a field description like this: ``` fieldWithPath("foo") .type(JsonFieldType.STRING) .description("some description") ``` If the returned value is `"foo": null`, then an exception is being thrown because...

type: enhancement
status: waiting-for-votes

Add support of collections inner constraints. Example: `@Valid private List someUsefulInformationList;` Example of expected snippet: ![image](https://user-images.githubusercontent.com/52043677/115206234-71bf3280-a10b-11eb-8fa0-1280402a52a0.png) PS: StackOverflow [question](https://stackoverflow.com/questions/67104197/how-i-can-document-inner-collection-constraints-in-spring-auto-restdocs)

type: enhancement

Was trying to implement RestDocs MockMvc in our Kotlin project However noticed that when using the MockMvc Kotlin DSL snippets were not generated e.g. ``` fun shouldReturnDefaultMessageKotlinDSL() { mockMvc.get("/hello") .andExpect...

type: documentation

Maybe Spring REST Docs could support natively Server-Sent Events endpoints, as supported in Spring Framework 4.2+ thanks to [`SseEmitter`](http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/servlet/mvc/method/annotation/SseEmitter.html) type, and global Streaming API support based on [`ResponseBodyEmitter`](http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/servlet/mvc/method/annotation/ResponseBodyEmitter.html) type. I...

type: enhancement

Background: I removed some method calls to "description()" to better debug my Rest tests, big mistake. Now I understand the exception, but I needed to debug it, to understand that...

type: enhancement

Hi, when using a `PayloadSubsectionExtractor` (e.g. `FieldPathPayloadSubsectionExtractor`) to extract a subsection of a JSON payload, array indices are ignored. I would assume that when a path is used like `Outer[].Nested[0].Attribute`...

type: enhancement

Currently Spring REST Docs generates snippets using single quotes around header values: `$ curl 'https://some.url.com/teams' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer $TOKEN' -d '{...

type: enhancement