Skip to content

Basic Open API implementation#137

Open
Cobolt77 wants to merge 2 commits into
rknell:masterfrom
apollocode-ca:apollocode/openapi
Open

Basic Open API implementation#137
Cobolt77 wants to merge 2 commits into
rknell:masterfrom
apollocode-ca:apollocode/openapi

Conversation

@Cobolt77
Copy link
Copy Markdown

@Cobolt77 Cobolt77 commented Jan 16, 2025

@rknell Created a PR instead of an issue to demonstrate the proof of concept.
The idea would be to make Alfred compatible with OpenAPI to use with softwares like Insomnia and Postman aswell as providing clean documentation for external developers to one's project.

Before going too far and doing a complete (and clean!) implementation of this, I wanted your take on this.

The way I see this, it would add an optionnal route parameter called "openAPIDoc" in which you could specify more details about the route. By default, it would at least render the path and path parameter.

Looking at my example, a simple route could be instantiated to open the OpenAPI document to the public.

As I mentionned, it's only a PoC before doing an actual implementation of this.
Is this something you would want in Alfred?

Thanks!

As a side note, below is a screenshot of the outputed file (left) and used with swagger (right)
image

@Cobolt77 Cobolt77 marked this pull request as draft April 21, 2025 12:22
@Cobolt77 Cobolt77 marked this pull request as ready for review April 21, 2025 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant