public abstract class HttpDocumentation extends Object
Modifier and Type | Method and Description |
---|---|
static Snippet |
httpRequest()
Returns a handler that will produce a snippet containing the HTTP request for the
API call.
|
static Snippet |
httpRequest(Map<String,Object> attributes)
Returns a handler that will produce a snippet containing the HTTP request for the
API call.
|
static Snippet |
httpResponse()
Returns a handler that will produce a snippet containing the HTTP response for the
API call.
|
static Snippet |
httpResponse(Map<String,Object> attributes)
Returns a handler that will produce a snippet containing the HTTP response for the
API call.
|
public static Snippet httpRequest()
public static Snippet httpRequest(Map<String,Object> attributes)
attributes
will be available during snippet generation.attributes
- the attributespublic static Snippet httpResponse()
public static Snippet httpResponse(Map<String,Object> attributes)
attributes
will be available during snippet generation.attributes
- the attributes