argentum_rest_generator_app

Crates.ioargentum_rest_generator_app
lib.rsargentum_rest_generator_app
version0.3.1
created_at2024-08-01 20:07:39.188782+00
updated_at2025-08-19 22:47:33.925805+00
descriptionArgentum toolkit REST generator
homepagehttps://gitlab.com/argentum-toolkit/argentum
repositoryhttps://gitlab.com/argentum-toolkit/argentum
max_upload_size
id1322461
size238,905
Vital Leshchyk (itcreator)

documentation

https://gitlab.com/argentum-toolkit/argentum

README

Argentum ToolKit. REST Generator.

REST Generator is a tools that creates API libraries from OpenAPI specification.

Supported generators

Language Type Supported versions
Rust Server side API package 3.1 and 3

Key features

  • Parsing instead of validation
  • Generated code compatible with Argentum REST
  • Clean and human-readable error responses
  • Low code duplication in generated code
  • Extendable and reusable generated code

How to install

Via cargo install

cargo install argentum_rest_generator_app
git clone git@gitlab.com:argentum-toolkit/argentum.git

cargo install --path argentum_rest_generator_app/

How to use

argentum_rest_generator_app --input api-doc/openapi.yaml --output rest/ --package-name user_account_rest

Or you can generate via cargo run (sources should be cloned)

cd argentum/argentum_rest_generator_app

cargo run --   --input ../argentum_user_account/api-doc/openapi.yaml --output ../argentum_user_account/rest/ --package-name argentum_user_account_rest

Restrictions

  • supports only $ref params in case if OpenAPI objects supports $ref. (Doesn’t support inline objects in this case)
  • Schemas supports only Object type (Array, AnyOf, AllOf are not implemented yet)
  • we don’t use OpenAPI tags. If you need similar functionality, we would like to recommend split your API to packages
Commit count: 242

cargo fmt