https://github.com/chara-x/rest
Generate openapi client and docs from proc-macro
https://github.com/chara-x/rest
client-generator documentation-generator openapi proc-macro
Last synced: 6 months ago
JSON representation
Generate openapi client and docs from proc-macro
- Host: GitHub
- URL: https://github.com/chara-x/rest
- Owner: Chara-X
- Created: 2025-02-20T13:14:36.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-03-14T21:25:02.000Z (11 months ago)
- Last Synced: 2025-03-22T12:25:22.986Z (11 months ago)
- Topics: client-generator, documentation-generator, openapi, proc-macro
- Language: Rust
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rest
## Example
```rust
rest::client!({
info {
title: "User management",
version: "1.0",
description:
"Just for example",
};
server {
url: "/api/v1",
};
/// Create a new user
op("POST", "/users", msg::User, ());
/// Get a user
op("GET", "/users/{id}", (), msg::User);
});
```