API on CRUDBooster feature is not an API that are authorized each - each user. API CRUDBooster only have one key that can be used across devices.
API CRUDBooster is also equipped with key / token which you must first create the menu screet API Key.
By default API is not protected by authentication API for setting off the menu Settings -> Application Settings -> AP Debug (False). You can change it to TRUE if you want to enable authentication API.
API authentication on CRUDBooster sent through a header with the following parameters:
X-Authorization-Token : < TOKEN >
X-Authorization-Time : < TIME >
To generate the token above you should use the following format:
TIME = Current TIme Miliseconds
< TOKEN > = md5( SCREET_KEY . TIME . USER_AGENT )
< TIME > = TIME
Go To Api Generator menu -> Add New API
|API Name||Fill in the name of the API that will be made in accordance with the related table|
|Table||Select the table that will be used|
|API Slug||Optional. By default it will be filled in automatically|
Please select the available actions include:
Listing : is the type that will display the list of data
Detail : is the type of data that will show details
Create : is the type used to add data
Update : is the type used to transform the data
Delete : is the type used to delete datamerupakan tipe yang digunakan untuk menghapus data
Please select the request method include:
GET , POST
This table will automatically appear when you have completed the previous stuffing.
Comprising variable is used as the data to be sent from the application using the API
If you want to add conditions to the SQL QUERY, you can add in this column. example:
status = 'Active'
A list of variables that will appear on the API.
When you perform a custom query using the controller hook_after related APIs, and want to generate additional response variable, then you must add also in part of this response, the custom type not in table