See: Description
Annotation Type | Description |
---|---|
Body |
Use this annotation on a service method param when you want to directly control the request body
of a POST/PUT request (instead of sending in as request parameters or form-style request
body).
|
DELETE |
Make a DELETE request to a REST path relative to base URL.
|
EncodedPath | Deprecated
Use
Path with encode = false . |
EncodedQuery | Deprecated
Use
Query with encodeValue = false . |
EncodedQueryMap | Deprecated
Use
QueryMap with encodeValues = false . |
Field |
Named pair for a form-encoded request.
|
FieldMap |
Named key/value pairs for a form-encoded request.
|
FormUrlEncoded |
Denotes that the request body will use form URL encoding.
|
GET |
Make a GET request to a REST path relative to base URL.
|
HEAD |
Make a HEAD request to a REST path relative to base URL.
|
Header |
Replaces the header with the value of its target.
|
Headers |
Adds headers literally supplied in the
value . |
Multipart |
Denotes that the request body is multi-part.
|
Part |
Denotes a single part of a multi-part request.
|
PartMap |
Denotes name and value parts of a multi-part request
|
PATCH |
Make a PATCH request to a REST path relative to base URL.
|
Path |
Named replacement in the URL path.
|
POST |
Make a POST request to a REST path relative to base URL.
|
PUT |
Make a PUT request to a REST path relative to base URL.
|
Query |
Query parameter appended to the URL.
|
QueryMap |
Query parameter keys and values appended to the URL.
|
RestMethod | |
Streaming |
Treat the response body on methods returning
Response as is,
i.e. |
Copyright © 2015 Square, Inc.. All Rights Reserved.