magento2: Successful attribute option POST returns 'true', not the option hash or value
Preconditions
- Magento 2.1.0.
Steps to reproduce
- POST an new option value using /V1/products/attributes/{attributeCode}/options. Request body looks like
{"option": {"label": "FOOBAR"} }
- Examine response content.
Expected result
- Returned body should contain full record of option inserted including the option “value.”
Actual result
- Response body contains only ‘true’. To learn the value of the newly inserted option you most GET the entire list again.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (8 by maintainers)
@milindsingh Option 2 (backport 2.3-develop approach)