Crate rustapi_macros

Crate rustapi_macros 

Source
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

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