ukiapi-macros 0.0.1

Procedural macros for UkiApi web framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# ukiapi-macros

Procedural macros for the UkiApi framework.

## 🚀 Macros

### `#[get("path")]`, `#[post("path")]`, etc.
Attribute macros to define API endpoints. They generate a helper function (e.g., `my_handler_route()`) that returns a `Route` object used by the `UkiApi` builder.
They also automatically infer request/response schemas for OpenAPI documentation.

### `#[model]`
A shortcut macro for data models. It derives:
- `Serialize`, `Deserialize` (Serde)
- `JsonSchema` (Schemars)
- `Validate` (Validator)
- `TS` (ts-rs) for TypeScript bindings
- `Clone`