salvo icon indicating copy to clipboard operation
salvo copied to clipboard

Feature: Add OpenAPI support

Open chrislearn opened this issue 3 years ago • 6 comments

chrislearn avatar Aug 05 '22 00:08 chrislearn

What is the plan? Generate from document or code scanning ?

Murtuzakabul avatar Aug 06 '22 03:08 Murtuzakabul

Feature like this: https://github.com/juhaku/utoipa

chrislearn avatar Aug 06 '22 04:08 chrislearn

Do we really need to make it work for other frameworks also? I guess you mean to adopt the architecture from it only.

Murtuzakabul avatar Aug 06 '22 04:08 Murtuzakabul

I want to move from Poem to Salvo once this feature is added.

shujaat-github avatar Sep 14 '22 07:09 shujaat-github

Feature like this: https://github.com/juhaku/utoipa

@chrislearn When this feature will be implemented?

shujaatak avatar Oct 11 '22 16:10 shujaatak

Not sure when it will start.

chrislearn avatar Oct 11 '22 21:10 chrislearn

really waiting for this, salvo is already my favorite, but sometimes people want openapi + swagger with their api's and I have no choice but to use poem or rocket.

MahdiBaghbani avatar Nov 26 '22 17:11 MahdiBaghbani

The idea it has is to integrate Utoipa to Salvo or make a new development based on Utoipa?

josejachuf avatar Nov 28 '22 13:11 josejachuf

https://github.com/salvo-rs/salvo/tree/main/examples/todos-openapi

josejachuf avatar Feb 13 '23 18:02 josejachuf

This is an example: https://github.com/salvo-rs/salvo/blob/oapi/examples/todos-oapi/src/main.rs You can compare it with this example use utoipa: https://github.com/salvo-rs/salvo/blob/oapi/examples/todos-utoipa/src/main.rs

Current developing implemention is modified from utopia.

chrislearn avatar Apr 23 '23 13:04 chrislearn