Package | Description |
---|---|
org.springframework.restdocs.cli |
Documenting CLI commands required to make a request to a RESTful API.
|
org.springframework.restdocs.headers |
Documenting the headers of a RESTful API's requests and responses.
|
org.springframework.restdocs.http |
Documenting the HTTP request sent to a RESTful API and the HTTP response that is
returned.
|
org.springframework.restdocs.hypermedia |
Documenting a RESTful API that uses hypermedia.
|
org.springframework.restdocs.operation |
Operation API that describes a request that was sent and the response that was received
when calling a RESTful API.
|
org.springframework.restdocs.payload |
Documenting the payload of a RESTful API's requests and responses.
|
org.springframework.restdocs.request |
Documenting query and path parameters of requests sent to a RESTful API.
|
org.springframework.restdocs.snippet |
Snippet generation.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
HttpieRequestSnippet.createModel(Operation operation) |
protected java.util.Map<java.lang.String,java.lang.Object> |
CurlRequestSnippet.createModel(Operation operation) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
AbstractHeadersSnippet.createModel(Operation operation) |
protected java.util.Set<java.lang.String> |
ResponseHeadersSnippet.extractActualHeaders(Operation operation) |
protected abstract java.util.Set<java.lang.String> |
AbstractHeadersSnippet.extractActualHeaders(Operation operation)
Extracts the names of the headers from the request or response of the given
operation . |
protected java.util.Set<java.lang.String> |
RequestHeadersSnippet.extractActualHeaders(Operation operation) |
protected java.util.List<HeaderDescriptor> |
AbstractHeadersSnippet.findMissingHeaders(Operation operation)
Finds the headers that are missing from the operation.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
HttpResponseSnippet.createModel(Operation operation) |
protected java.util.Map<java.lang.String,java.lang.Object> |
HttpRequestSnippet.createModel(Operation operation) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
LinksSnippet.createModel(Operation operation) |
Modifier and Type | Class and Description |
---|---|
class |
StandardOperation
Standard implementation of
Operation . |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
AbstractBodySnippet.createModel(Operation operation) |
protected java.util.Map<java.lang.String,java.lang.Object> |
AbstractFieldsSnippet.createModel(Operation operation) |
protected byte[] |
RequestBodySnippet.getContent(Operation operation) |
protected abstract byte[] |
AbstractBodySnippet.getContent(Operation operation)
Returns the content of the request or response extracted from the given
operation . |
protected byte[] |
RequestPartBodySnippet.getContent(Operation operation) |
protected byte[] |
ResponseBodySnippet.getContent(Operation operation) |
protected byte[] |
RequestPartFieldsSnippet.getContent(Operation operation) |
protected abstract byte[] |
AbstractFieldsSnippet.getContent(Operation operation)
Returns the content of the request or response extracted form the given
operation . |
protected byte[] |
RequestFieldsSnippet.getContent(Operation operation) |
protected byte[] |
ResponseFieldsSnippet.getContent(Operation operation) |
protected org.springframework.http.MediaType |
RequestBodySnippet.getContentType(Operation operation) |
protected abstract org.springframework.http.MediaType |
AbstractBodySnippet.getContentType(Operation operation)
Returns the content type of the request or response extracted from the given
operation . |
protected org.springframework.http.MediaType |
RequestPartBodySnippet.getContentType(Operation operation) |
protected org.springframework.http.MediaType |
ResponseBodySnippet.getContentType(Operation operation) |
protected org.springframework.http.MediaType |
RequestPartFieldsSnippet.getContentType(Operation operation) |
protected abstract org.springframework.http.MediaType |
AbstractFieldsSnippet.getContentType(Operation operation)
Returns the content type of the request or response extracted from the given
operation . |
protected org.springframework.http.MediaType |
RequestFieldsSnippet.getContentType(Operation operation) |
protected org.springframework.http.MediaType |
ResponseFieldsSnippet.getContentType(Operation operation) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
AbstractParametersSnippet.createModel(Operation operation) |
protected java.util.Map<java.lang.String,java.lang.Object> |
RequestPartsSnippet.createModel(Operation operation) |
protected java.util.Map<java.lang.String,java.lang.Object> |
PathParametersSnippet.createModel(Operation operation) |
protected abstract java.util.Set<java.lang.String> |
AbstractParametersSnippet.extractActualParameters(Operation operation)
Extracts the names of the parameters that were present in the given
operation . |
protected java.util.Set<java.lang.String> |
RequestParametersSnippet.extractActualParameters(Operation operation) |
protected java.util.Set<java.lang.String> |
PathParametersSnippet.extractActualParameters(Operation operation) |
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.Map<java.lang.String,java.lang.Object> |
TemplatedSnippet.createModel(Operation operation)
Create the model that should be used during template rendering to document the
given
operation . |
void |
TemplatedSnippet.document(Operation operation) |
void |
Snippet.document(Operation operation)
Documents the call to the RESTful API described by the given
operation . |