commercetools / commercetools-postman-collection

Collection of commercetools API examples setup on top of Postman
117 stars 171 forks source link

Misleading variable name in <get ByProjectKeyProductSelectionsKeyByKeyProducts> #15

Closed sfernengel closed 1 year ago

sfernengel commented 2 years ago

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?

jenschude commented 2 years ago

Should be fixed with bc26f72

Thanks for the report!

jenschude commented 2 years ago

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