GET /admin-api/attributes/groups

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 :
* Authentifed : Yes
* Method:  GET
* URL : “https://[url of your shop]/admin-api/attributes/groups”
The return value is in JSON.

The return data has multiples keys : “totalItems”, “sortOrder”, “limit”, “filters”, “items”

The key “items” has multiples values.

Each value has multiples keys : “attributeGroupId”, “name”, “position”, “values”
In BO, Go to Catalog > Attributes & Features page Catalog > Attributes & Features Page is displayed correctly.
Default records found in the table
Reset all filters of Attributes table All filters are reset.
All Attributes are displayed.
Loop on each item of the key items of the JSON Response
Filter on the attribute group ID column for a specific attribute group 1 record found.

Check that the JSON Response has the same data in the grid :
* attributeGroupId
* name
* position
* values
Reset all filters Filters are reset
Total attributes = Number of Attributes
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