An open API service indexing awesome lists of open source software.

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

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);
});
```