Skip to content

Feature request: API Swagger documentation generator #2082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
ran-isenberg opened this issue Apr 4, 2023 · 4 comments
Closed
2 tasks done

Feature request: API Swagger documentation generator #2082

ran-isenberg opened this issue Apr 4, 2023 · 4 comments
Labels

Comments

@ran-isenberg
Copy link
Contributor

Use case

I'd like to generate swagger JSON files describing my service out of my lambda handlers functions.
I've seen utilities such as FasTAPI do that but I want a more simplified and native lambda experience.

Solution/User Experience

A simple decorator is added to the function handler. In runtime it will not do anything and will not impact performance.
However, the utility will supply a CLI command that will generate the JSON output file so it can be committed into the repository.

Similar to FastAPI it can supports the following arguments:

  1. general description
  2. path parameters description
  3. Pydantic body schema support
  4. response codes
  5. query parameters support

We can create a wrapper around FastAPI or write it from scratch.

Alternative solutions

No response

Acknowledgment

@ran-isenberg ran-isenberg added feature-request feature request triage Pending triage from maintainers labels Apr 4, 2023
@leandrodamascena
Copy link
Contributor

Hi @ran-isenberg! Thank you for opening this issue. I'm moving this topic to "On Hold" because I know @heitorlessa wants to get some ideas on this and he is out this week.

Thank you.

@pharindoko
Copy link

@ran-isenberg this issue already describes it #1236

@heitorlessa heitorlessa removed the triage Pending triage from maintainers label Apr 25, 2023
@heitorlessa
Copy link
Contributor

hey Ran, I'm closing this in favour of generating it at runtime with a new route (Swagger UI + OpenAPI generated for you): #2421

It'd be great to get your feedback from a Pydantic customer perspective - I suspect we might need a new Event Handler implementation altogether to make Pydantic a first class citizen like FastAPI.

#2421

@heitorlessa heitorlessa closed this as not planned Won't fix, can't repro, duplicate, stale Jun 8, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2023

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

5 participants