#[delete]
Expand description
A procedural macro for building an HTTP DELETE method of trait. It includes the following attributes:
- path - a part of the URL path
- consumes - content-type for request
- produces - content-type for response
DELETE method supports argument macros:
- #[segment] - maps method arguments to path segments
- #[query] - maps method arguments to query parameters
- #[header] - maps method arguments to request headers
- #[body] - maps method arguments to request body
Example:
#[delete(path = "/{path_query}", consumes = "application/json", produces = "application/json")]
fn delete(&self, #[segment] path_query: &str, #[query] query_param: &str, #[header] authorization: &str) -> ClientixResult<ClientixResponse<String>>;