Skip to content

How to add multipart to swagger? Nested routers error #1230

Answered by juhaku
Kimishu asked this question in Q&A
Discussion options

You must be logged in to vote

I just added couple of examples on how to define multipart form uploads. https://github.com/juhaku/utoipa/tree/master/examples/axum-multipart https://github.com/juhaku/utoipa/tree/master/examples/actix-web-multipart

For what comes to 2. problem, it is same issue as here: #1183 (comment). In short the routes! macro call is single axum MethodRouter which allows only single handler per http method.

Hope these will get you forward.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@juhaku
Comment options

Answer selected by Kimishu
@juhaku
Comment options

@juhaku
Comment options

@Kimishu
Comment options

@juhaku
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants