Explore API Builder Module

Explore API Builder Module

Kuika's API Builder module allows you to turn your application into a data source for other applications and services. API (Application Programming Interface) is an interface that performs data exchange between different systems and applications in a standard structure.

This module makes it easier for your application to send and receive data. For example, a food ordering application developed in Kuika can get a restaurant's menu via API. Similarly, when an order is placed, you can send this information to the restaurant via API and get feedback. In this training content, you will learn how to configure API definitions using the Kuika API Builder module.

This training content consists of the following topics:

  • Create API Builder
  • API Builder panel
  • API Method creation and Properties panel usage
Create API Builder
  1. Enter the Kuika platform and open your project from the Apps screen.
  1. Open the API Builder module.
  2. Choose a name for a new API.
  3. Create your API by clicking the CREATE button.
API Builder Module

API Builder module allows you to manage all API definitions created on Kuika. What you can do in this module:

  • Create new APIs: You can define new APIs according to the needs of your application.
  • Edit existing APIs: You can change API names, descriptions and basic settings.
  • Delete APIs: You can remove unused APIs with the Delete icon.
  • API status check and preview: You can test the working status of APIs and examine data returns.
  • Security and authorization: You can ensure that APIs are only accessible by authorized users.
API Builder Method Creation and Properties Panel
  1. Create a new method in API Builder by clicking the ADD NEW METHOD button.
  2. Specify a method name and configure the settings in the Properties panel.
  3. Select method authorization:
    • Anonymous Access: The API will be accessible by everyone.
    • All Roles Access: All authorized users can access.
  4. Determine which actions the method will perform when called with the Add Actions option.
  5. 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.

  1. Create a new Custom Action in the UI Design module or Datasources module.
  2. Add the following query to the SQL Editor:
SELECT Barcode, Status FROM Menu WHERE Barcode = @Barcode
  1. Name your action Status Inquiry and click the CREATE button.
  2. Add this action to the API Method with the +ADD ACTION button.
  3. Select Action Results → Status Inquiry with Symbol Picker.
  4. Define Barcode as Method Input:
    • Input Name: Barcode
    • Input Type: Guid
  5. Test the API by pressing the Preview button.
  6. Review the API and method output from the Swagger page.
  7. 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.

Other Related Content

No items found.

Glossary

Alt Başlıklar