-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Use api route prefix parameter instead of /api/v2
#13881
Conversation
/api/v2
/api/v2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should perhaps introduce some specs for these classes
@@ -45,17 +38,18 @@ public function normalize($object, $format = null, array $context = []) | |||
$enums = $this->filterProvider->provideShopFilters(); | |||
$enums = array_keys($enums); | |||
|
|||
$params = $docs['paths'][self::SHOP_ITEM_PATH]['get']['parameters']; | |||
$shopProductImagePath = $this->apiRoute . '/shop/product-images/{id}'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would leave suffix as a const
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also think of it but it was a private const so it wasn't editable nor accessible.
Thanks, Francis! 🎉 |
@lchrusciel I'm also thinking about doing this kind of api route prefix for the Behat tests, because it forces us to use |
Small PR to be able to use another api route prefix while generating the swagger page.