commercetools-postman-collection icon indicating copy to clipboard operation
commercetools-postman-collection copied to clipboard

Misleading variable name in <get ByProjectKeyProductSelectionsKeyByKeyProducts>

Open sfernengel opened this issue 3 years ago • 2 comments

In the new postman collection get query to fetch products that are assigned to a product selection contains wrong variable name. Original: {{host}}/{{project-key}}/product-selections/key={{product-key}}/products

Correct version should be: {{host}}/{{project-key}}/product-selections/key={{product-selection-key}}/products

Also shouldn't the name be get ByProjectKeyProductSelectionsByKeyProducts?

sfernengel avatar Feb 10 '22 16:02 sfernengel

Should be fixed with bc26f72

Thanks for the report!

jenschude avatar Feb 14 '22 21:02 jenschude

The generator tries to generate a unique name from the URI and in case there was no method annotation it will include the path fragment "key" in the name

jenschude avatar Feb 14 '22 21:02 jenschude