You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, here's an issue I am encountering. I'm in the process of developing an API, but I'm having issues with the base url and endpoint "path". The endpoint is not relative to the base url. In my example above, since the base url contains /v1/partner, then the endpoint should simply be /contacts and not /v1/partner/contacts. I'm fully aware that I could simply remove /v1/partner from the base url and it would be technically correct, but frankly, this is ugly and not visually appealing for end users. I don't want each of my endpoints to display this prefix when it's already included in the base url. It's absolutely unnecessary for each endpoint to be prefixed with /v1/partner when it could simply be stated in the base url.
I've tried messing with the configuration, but have had no luck. It appears to me that the "host" and "basePath" settings in nelmio_api_doc.yaml are just for display purposes and serves no other purpose than to display the base url in the documentation. Wouldn't it make sense to be able to define a "basePath" which would then allow your endpoints to be relative to this path?
So, what am I missing? Is there actually any way to allow my base url to include /v1/partner and my endpoint to simply be /contacts?
The text was updated successfully, but these errors were encountered:
So, here's an issue I am encountering. I'm in the process of developing an API, but I'm having issues with the base url and endpoint "path". The endpoint is not relative to the base url. In my example above, since the base url contains /v1/partner, then the endpoint should simply be /contacts and not /v1/partner/contacts. I'm fully aware that I could simply remove /v1/partner from the base url and it would be technically correct, but frankly, this is ugly and not visually appealing for end users. I don't want each of my endpoints to display this prefix when it's already included in the base url. It's absolutely unnecessary for each endpoint to be prefixed with /v1/partner when it could simply be stated in the base url.
I've tried messing with the configuration, but have had no luck. It appears to me that the "host" and "basePath" settings in nelmio_api_doc.yaml are just for display purposes and serves no other purpose than to display the base url in the documentation. Wouldn't it make sense to be able to define a "basePath" which would then allow your endpoints to be relative to this path?
So, what am I missing? Is there actually any way to allow my base url to include /v1/partner and my endpoint to simply be /contacts?
The text was updated successfully, but these errors were encountered: