Skip to content
This page View Markdown Open in ChatGPT Open in Claude

Is valid data for custom API

g.sys.system.isValidDataForCustomAPI calls the is valid data for custom API system API from your code, whatever the settings of that API say about HTTP callers.

Validate custom API body object

Test custom API data valid or not using global object 'g'.

1
2
3
4
5
6
7
8
await g.sys.system.isValidDataForCustomAPI({
    name: "custom_api_name",
    data: {
        "some": "data",
        "some": "data"
    },
    type: "BODY" // BODY | QUERY_PARAMS
});