public class HttpieRequestSnippet extends TemplatedSnippet
Snippet
that documents the HTTPie command for a request.CliDocumentation.httpieRequest()
,
CliDocumentation.httpieRequest(Map)
Modifier | Constructor and Description |
---|---|
protected |
HttpieRequestSnippet()
Creates a new
HttpieRequestSnippet with no additional attributes. |
protected |
HttpieRequestSnippet(Map<String,Object> attributes)
Creates a new
HttpieRequestSnippet 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 HttpieRequestSnippet()
HttpieRequestSnippet
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