Recommended approach for OpenAPI documentation using Utoipa?

Open
#140 2 comments 2 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Active
Tech stack
rust

Research direction

Start by reading the Laravel Rust router and middleware documentation, then check how the framework exposes or wraps Axum routers. The issue asks for an integration recommendation and possible built-in support, but names no files, tests, or concrete documentation change; done would require maintainers to settle the integration approach and provide guidance or examples.

Written by the indexing model from the issue text.

Description

I'm interested in using Laravel Rust to build a REST API with automatically generated OpenAPI documentation.

Since Laravel Rust is built on top of Axum, Utoipa seems like a natural choice, particularly in combination with:

  • utoipa-axum for integrated route registration and OpenAPI generation.
  • utoipa-redoc for rendering the API documentation.

Ideally, I would like to use Utoipa's OpenApiRouter to avoid having to register routes and their OpenAPI definitions separately, while retaining Laravel's middleware, application state and other framework features.

What would be the recommended approach for integrating Utoipa with Laravel Rust?

  • Is it possible to integrate Utoipa's OpenApiRouter with Laravel's router?
  • Is there a recommended way to merge a native Axum router into Laravel's router?
  • Are there any plans to provide built-in OpenAPI support or official integration with Utoipa?

Any guidance or examples would be appreciated.

Dominant language
Rust
Stars
2.2k
Forks
105
Avg merge
7h 19m
Merged PRs (30d)
41

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from laravel/rust

All issues in laravel/rust

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.