Create a new method in API Builder by clicking the ADD NEW METHOD button.
Specify a method name and configure the settings in the Properties panel.
Select method authorization:
Anonymous Access: The API will be accessible by everyone.
All Roles Access: All authorized users can access.
Determine which actions the method will perform when called with the Add Actions option.
Define Method Input to allow the API to receive parameters from outside.
Example Scenario: API Method Usage
Scenario: An application will return menu status information when a barcode number is entered.
Create a new Custom Action in the UI Design module or Datasources module.
Add the following query to the SQL Editor:
SELECT Barcode, Status FROM Menu WHERE Barcode =@Barcode
Name your action Status Inquiry and click the CREATE button.
Add this action to the API Method with the +ADD ACTION button.
Select Action Results → Status Inquiry with Symbol Picker.
Define Barcode as Method Input:
Input Name: Barcode
Input Type: Guid
Test the API by pressing the Preview button.
Review the API and method output from the Swagger page.
Determine whether the API will be open to everyone or logged in users from the Authorization setting.
With this training content, you have gained basic knowledge about creating APIs, defining methods and managing APIs in the Kuika API Builder module. You can complete your development by testing your API and optimizing its settings.