Expand description
Procedural macros for RustAPI
This crate provides the attribute macros used in RustAPI:
#[rustapi::main]- Main entry point macro#[rustapi::get("/path")]- GET route handler#[rustapi::post("/path")]- POST route handler#[rustapi::put("/path")]- PUT route handler#[rustapi::patch("/path")]- PATCH route handler#[rustapi::delete("/path")]- DELETE route handler
§Debugging
Set RUSTAPI_DEBUG=1 environment variable during compilation to see
expanded macro output for debugging purposes.
Attribute Macros§
- delete
- DELETE route handler macro
- description
- Description macro for detailed endpoint description in OpenAPI documentation
- get
- GET route handler macro
- main
- Main entry point macro for RustAPI applications
- patch
- PATCH route handler macro
- post
- POST route handler macro
- put
- PUT route handler macro
- summary
- Summary macro for endpoint summary in OpenAPI documentation
- tag
- Tag macro for grouping endpoints in OpenAPI documentation