Skip to main content

Introduction

The "Administrators" module is designed for managing administrators. An administrator is a user who can add, update, and edit information on the website or in the mobile application.

const { Admins } = defineOneEntry('your-url', {
token:'your-app-token',
});

The method accepts the body as a parameter for filtering. If you don't want to set up filtering/sorting, pass an empty array or don't pass anything.

Parameters:

const body = [
{
"attributeMarker": "num",
"conditionMarker": "mth",
"conditionValue": 1
},
{
"attributeMarker": "num",
"conditionMarker": "lth",
"conditionValue": 3
}
]
Schema: (body)

attributeMarker: string
text identifier attribute
example: price

conditionMarker: string
text identifier condition, possible values: 'in' - contains, 'nin' - does not contain, 'eq' - equal, 'neq' - not equal, 'mth' - more than, 'lth' - less than, 'exs' - exists, 'nexs' - does not exist, 'pat' - pattern, for example -, where '' represents any character, 'same' - same value as the selected attribute*
example: in
Enum: [ in, nin, eq, neq, mth, lth, exs, nexs, pat, same ]

conditionValue: number
condition value
example: 1