POST /admin-api/attributes/attribute

Details

Steps

Step Description Expected result
In BO, Go to Advanced Parameters > Authorization Server Authorization Server Page is displayed correctly.
No records found in the table
Click on the button “Add new API access” New API access Page is displayed correctly
* Fill the form with following data
* Click on “Generate client secret & Save” button
* The message “The API access and Client secret has been generated sucessfully” is displayed
* The message “Client secret: " is displayed
Request with method POST the endpoint “https://[url of your shop]/admin-api/attributes/group” with relative data The HTTP code is 201.

The return value is in JSON

The return value data are consistent relative to sent data.
In BO, Go to Catalog > Attributes & Features page Catalog > Attributes & Features Page is displayed correctly.
Default records found in the table
Reset all filters Filters are reset
Total attributes = Number of Attributes
Filter by name with “Paper Type” 1 record found
Click on the View button on the first row The Attribute “Paper Type” page will be displayed correctly

5 (4 defaults values + 1 created) records founds
Filter by name with created attribute value name 1 record found
Click on the Edit button on the first row The Editing Attribute Value page will be displayed correctly

Check data are consistant with JSON data
Click on the “Cancel” page Catalog > Attributes & Features Page is displayed correctly.
1 record is found in the table (and the filter is enabled)
Click on the Delete button on the first row > Confirm the deletion The alert “Successful deletion.” is displayed

0 record found
Reset all filters Filters are reset
Total attributes value = 4 (default values)
In BO, Go to Advanced Parameters > Authorization Server Authorization Server Page is displayed correctly.
1 record found in the table
On the first row, click on the button “Three points” The dropdown is displayed
Click on the Delete Button in the dropdown A modal appeared
Click on the Confirm Button in the modal The message “Successful deletion” is displayed
No records found in the table