POST /admin-api/api-client

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 (Client ID : “Client XYZ”, Client Name: “ClientName ABC”)
Click on “Generate client secret & Save” button
There is 1 application in the list
The message “The API access and Client secret has been generated sucessfully” is displayed
The message “Client secret: " is available
The button Copy put the client secret in the clipboard
Request with method POST the endpoint “https://[url of your shop]/admin-dev/index.php/api/api-client/{apiClientId}” with data The HTTP code is 201.

The response is in JSON.
In BO, Go to Advanced Parameters > Authorization Server Authorization Server Page is displayed correctly.
Two records found in the table.
Check fields like apiClientId, clientId, clientName.
Go to edit page Edit API access Page is displayed correctly
Check fields like description, enabled, lifetime, scopes
Go to Advanced Parameters > Authorization Server Authorization Server Page is displayed correctly.
On the second 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
One record found in the table
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