-
Notifications
You must be signed in to change notification settings - Fork 53
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
Enhancement: Support Swagger #45
Comments
Hello @code4rain, |
Hello @jowilf Please refer below. Is it possible to show the rest api style(json style return) by starlette-admin? Currrently starlette-admin generate rest api which return HTML(jinja2 based) instead of simple json style data.
Thanks for your reply 😊 |
Hello @code4rain, Only the listing page follow OpenApi specification to serve datatables through RestAPI, the others endpoint use POST (multipart/form-data) request and they can't follow OpenAPI Specification due to some limitations with the way dynamic list and embedded document are handle with html and Javascript. Take a look at this. You can see how the browser make the POST request with dynamic list (eg. |
@jowilf Thank for explain. I will check the code as you mentioned. |
@code4rain check my edited answer. I'm not sure it was clear |
@jowilf Actually, I'm using FastAPI as backend for my service and communicated with FE engineer by OpenAPI (Swagger). I made this issue to prevent to make new router code if possible. :) |
Sounds like a good idea, I'll reopen the issue and take a look at it when I have some free time to spend on it. |
Is there any improvement on this one? FastAPI depends on Pydantic to generate the OpenAPI Schema. Supporting this feature would probably make Pydantic a requirement. |
Is your feature request related to a problem? Please describe.
FastAPI supports OpenAPI as builtin.
Is it possible to support OpenAPI to describe detail spec for another client which want to create, read, update, delete?
Describe the solution you'd like
support API endpoint with OpenAPI description such as FastAPI does.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: