CleanUI
An API UI for connecting the other API's to the CleanUI UI's as module manager to fast up the your API!
Requirements
Requires an Supported API Handler, Recommended(Definery).
Requires installing axios package.
Usages
const { CleanUI } = require("cleanui");
const Defnery = require("definery");
const define = Definery.definer;
CleanUI.get("Your API URL", res => {
define(res, async(data) => {
let response = define((res, data), {expires: true, expireTime: 900000, data: data, edited: "https//cleanui.gq/api/send_option"});
await CleanUI.send.<send_option>(response);
})
});
Another usage
const { CleanUI } = require("cleanui");
const Defnery = require("definery");
const define = Definery.definer;
axios.get("Your API URL").then(res => {
let realData = define(res, data => data.send("https//cleanui.gq/api/send_option").exiseUI("https://cleanui.gq/api/intents", intent => data.selectIntent("select your intent")));
CleanUI.send.<send_option>(realData, res);
});
})
Send options
Options | Info |
---|---|
UI | send the API data to the UI as Peura data |
JSON | Send the API data as JSON data |
JSON_VALUE | Send the API data as JSON Value data |
PRIMARE_CONSOLE | Send the API data as Primare Console data |
EMIT_LIMITER | Send the API data as Emit Limiter data |
RESPANDBLE | Send the API data as Respandble data |
JSON_OBJECT | Send the API data as JSON Object data |
DBA_DATA | Send the API data as DBA data |
Returned To The UI Database(As Peura Language):
UI:"CURRENT_SELECTED_OPTION":"URL"??"SUCCESSFUL??FAILURE GET"^$"<PROMISE%OBJECT@REPEAT>"
Console options
Options | Info |
---|---|
send | Send some text/number message to API's UI manager |
reply | Reply to User/API/Data/Context/Manager some data |
add | Add some user to your API console |
remove | Remove some user to your API console |
Permissions
| Zone Level | Permissions | Info | | - | - | | DANGER |ADMINISTRATOR| Giving the user all the access of editing, managing, Your API| | HIGH |CONSOLE_MANAGER| Giving the user all the access of editing, managing... Your Console| | HIGH | DATA_MANAGER | Giving the user all the access of editing, managing, removing... Your API Data| | MEDIUM | CONTEXT_MANAGER | Giving the user all the access of editing, managing, removing... Your API Context| | MEDIUM | SUPERVISOR | Giving the user access to supervise, use... Your API| | LOW | GUEST | Giving the user access to use, send an specified data to Your API, WON'T IMPACT YOUR API| | DEFAULT | USER | Giving the user access to use Your API|