Package org.springframework.restdocs.payload
package org.springframework.restdocs.payload
Documenting the payload of a RESTful API's requests and responses.
-
ClassDescriptionAbstract
TemplatedSnippet
subclass that provides a base for snippets that document a RESTful resource's request or response body.AbstractTemplatedSnippet
subclass that provides a base for snippets that document a RESTful resource's request or response fields.A description of a field found in a request or response payload.AFieldDoesNotExistException
is thrown when a requested field does not exist in a payload.APayloadSubsectionExtractor
that extracts the subsection of the JSON payload identified by a field path.AFieldTypeRequiredException
is thrown when a field's type cannot be determined automatically and, therefore, must be explicitly provided.Resolves the type of a field in a request or response payload.An enumeration of the possible types for a field in a JSON request or response payload.Static factory methods for documenting a RESTful API's request and response payloads.PayloadSubsectionExtractor<T extends PayloadSubsectionExtractor<T>>Strategy interface for extracting a subsection of a payload.ASnippet
that documents the body of a request.ASnippet
that documents the fields in a request.ASnippet
that documents the body of a request part.ASnippet
that documents the fields in a request part.ASnippet
that documents the body of a response.ASnippet
that documents the fields in a response.A description of a subsection, i.e.