public class HttpRequestSnippet extends TemplatedSnippet
Snippet that documents an HTTP request.HttpDocumentation.httpRequest(),
HttpDocumentation.httpRequest(Map)| Modifier | Constructor and Description |
|---|---|
protected |
HttpRequestSnippet()
Creates a new
HttpRequestSnippet with no additional attributes. |
protected |
HttpRequestSnippet(java.util.Map<java.lang.String,java.lang.Object> attributes)
Creates a new
HttpRequestSnippet with the given additional
attributes that will be included in the model during template rendering. |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
createModel(Operation operation)
Create the model that should be used during template rendering to document the
given
operation. |
document, getAttributes, getSnippetNameprotected HttpRequestSnippet()
HttpRequestSnippet with no additional attributes.protected HttpRequestSnippet(java.util.Map<java.lang.String,java.lang.Object> attributes)
HttpRequestSnippet with the given additional
attributes that will be included in the model during template rendering.attributes - The additional attributesprotected java.util.Map<java.lang.String,java.lang.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