-
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
No mapping for HTTP-method #63
Comments
Hi. I'm not sure if you had a chance to look at this issue. In short, I have added the possibility to register endpoints with a specific base path. So in the definition, the endpoint is still defined as
If you think it's a good solution, I can prepare PR. Or could you propose a better solution? |
Hello @EDDragonWolf , Thank you for your question. I see this issue as follows:
The solution to this issue I believe should be fixing Regards, |
Hello @lganzzzo, You are right, it isn't exactly an issue of the main module, but from my point of view, it's a flexible way to handle the multiple Removing the base-path part from the endpoint declaration will work only for one
Or maybe I understood your idea wrong? I think the base path should be provided dynamically during the registration. With my changes, I also fixed another issue - the possibility of hosting a separate Swagger UI page for each version. I hope you'll consider my thoughts and fix this issue. Regards, |
Hi. I'm continuing to investigate the Swagger integration and found as I think a bug with endpoint mapping but I'm not sure if it's the right scope to discuss it.
I added the following code:
SwaggerComponent
:As result, my endpoint is available by the path
http://127.0.0.1:8000/test
.But when I try to make a request from the Swagger UI, it's sent to the
http://127.0.0.1:8000/api/v2.0/test
and returns the following error:If I change the definition of my endpoint to
ENDPOINT("GET", "/api/v2.0/test", test)
, it doesn't help since Swagger UI tries to send a request tohttp://127.0.0.1:8000/api/v2.0/api/v2.0/test
.So my API server works, but Swagger UI is broken.
Is it possible to add proper mapping to my API Controller? So my endpoint will use the
test
path but will be accessible by theapi/v2/0/test
path.The text was updated successfully, but these errors were encountered: