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