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(Map<String,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 Map<String,Object> |
createModel(Operation operation)
Create the model that should be used during template rendering to document the
given
operation . |
document, getAttributes, getSnippetName
protected HttpRequestSnippet()
HttpRequestSnippet
with no additional attributes.protected Map<String,Object> createModel(Operation operation)
TemplatedSnippet
operation
. Any additional attributes that were supplied when this
TemplatedSnippet
were created will be automatically added to the model
prior to rendering.createModel
in class TemplatedSnippet
operation
- The operation