Advance configure
Full project tutorial
Release Notes
API Endpoints are a kind of gateway that connects the server processes of the application to the front-end (web or mobile application itself). Each endpoint will be associated with its table.
Every endpoint has route/URL, method (GET
, POST
, PUT
or DELETE
), model function, request parameters and response parameters.
Created at least one table (see Table configuration)
To view API endpoints, go to API endpoints menu. By default, the existing endpoint groups that are generated from your database tables will appear on the left pane.
Clicking on an endpoint group on the left pane will open the endpoints list on the right pane.
On the endpoints list, toggle the status of an endpoint to “ON” to enable that endpoint.
To disable the endpoint, toggle the status back to “OFF”.
There are five pre-configuration endpoints in the endpoint list that can be enabled and configured. Example below for table users:
/api/users
/api/users
/api/users/:id
/api/users/:id
/api/users/:id
To configure the API endpoint, click “edit” icon.
The configuration panel will appear immediately on the right side
To delete the endpoint, click “delete” icon near the “edit” icon
To configure HTTP request method, select the HTTP method in the select box.
To configure URL request, specify the request url to the url input
HTTP method options:
To refine the request params for the endpoint, fill in the name and datatype option
You can also enter the JSON request parameter by click “auto-fill” link and fill the json object that you want as request params to text area field
To configure the filter function of GET model function, there are three areas that can be configured
Input fields
GET
, POST
, PUT
, GET
, DELETE
)The table is used for filter the list of table record that match with the configured conditions
Column definition
Condition
— There are two options which are AND and OR operators that used for filtering records based on one or more than condition
Column definition
— The column of table that uses for filtering the recordQuery
— The query that use for filtering the record, the options are base on the column type of column definition that selected (see the list query option)Value
— The value of request params that configured per step configure request paramsQuery option
String
, Text
Integer
, Float
, Date
, Datetime
File
Enum
To delete a condition, click “Trash” button, the condition row will disappear in the condition table
Pagination and ordering of the table record result
Input fields
Page
— Number of page of table record resultLimit
— Limit of table record result per pageOrder by
— Sort table record base on selected table columnOrder
— Sort table record base on option below
To configure the show function of GET model function, there are two areas that can be configured
The configuration can be configured the same as General configuration of the GET model function with show action configuration
The table is used for selecting only one the record that match with the configured condition