public class HttpResponseSnippet extends TemplatedSnippet
Snippet that documents an HTTP response.HttpDocumentation.httpResponse(),
HttpDocumentation.httpResponse(Map)| Modifier | Constructor and Description |
|---|---|
protected |
HttpResponseSnippet()
Creates a new
HttpResponseSnippet with no additional attributes. |
protected |
HttpResponseSnippet(Map<String,Object> attributes)
Creates a new
HttpResponseSnippet with the given additional
attributes that will be included in the model during template rendering. |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
createModel(Operation operation)
Create the model that should be used during template rendering to document the
given
operation. |
document, getAttributes, getSnippetNameprotected HttpResponseSnippet()
HttpResponseSnippet with no additional attributes.protected Map<String,Object> createModel(Operation operation)
TemplatedSnippetoperation. Any additional attributes that were supplied when this
TemplatedSnippet were created will be automatically added to the model
prior to rendering.createModel in class TemplatedSnippetoperation - The operation