Skip to main content

endpoint

Attribute Macro endpoint 

Source
#[endpoint]
Expand description

Full form: marks an IRequest impl with HTTP method and route path.

#[endpoint(HttpGet, "/users/{id}")]
impl IRequest<UserModel> for GetUserRequest {}