Skip to main content

category

Attribute Macro category 

Source
#[category]
Expand description

Declares an optional display grouping for the endpoint.

The category is metadata for endpoint listings (permission trees, admin navigation, OpenAPI tags); it does not affect routing or authorization. It accepts the same forms as [display].

ⓘ
#[get("/api/blog")]
#[category("博客模块")]
impl IRequest<Vec<BlogModel>> for ListBlogRequest {}