To use this cli, we need to first Install Nodejs, then run the following command.
npm i -g namirasoft-quota-api-v1
Returns the application health status
ns-quota healthz get
Returns the application metrics
ns-quota metrics get
Returns the value list of a given table and column
ns-quota value list {table} {column} {search} {field_id} {limit}
Returns the quota of a product_id and action_name for an user_id
ns-quota quota _getbyfor {user_id} {product_id} {action_id_name}
Returns the quota of a product_id and action_name for an user_id
ns-quota quota getby {product_id} {action_id_name}
Returns the quota list
ns-quota quota list {filters} {page} {size} {sorts}
Returns a quota by an id
ns-quota quota get {id}
Returns the product list
ns-quota product list {filters} {page} {size} {sorts}
Returns a product by an id
ns-quota product get {id}
Returns the action list
ns-quota action list {filters} {page} {size} {sorts}
Returns an action by an id
ns-quota action get {id}
Returns the request list
ns-quota request list {filters} {page} {size} {sorts}
Returns a request by an id
ns-quota request get {id}
Creates a new request
ns-quota request create
--product_id (String)
--action_id_name (String)
--new_value (Integer)
Updates a request by an id
ns-quota request update {id}
--product_id (String)
--action_id_name (String)
--new_value (Integer)
Deletes a request by an id
ns-quota request delete {id}
{  "name": "Quota",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "product_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "action_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "name": {      "type": "String",      "required": true,      "max": 255    },    "value": {      "type": "Integer",      "required": true    },    "created_at": {      "type": "DateTime",      "required": true    },    "updated_at": {      "type": "DateTime",      "required": true    }  }}
{  "name": "Product",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "name": {      "type": "String",      "required": true,      "max": 255    },    "created_at": {      "type": "DateTime",      "required": true    },    "updated_at": {      "type": "DateTime",      "required": true    }  }}
{  "name": "Action",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "product_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "name": {      "type": "String",      "required": true,      "max": 255    },    "default": {      "type": "Integer",      "required": true    },    "created_at": {      "type": "DateTime",      "required": true    },    "updated_at": {      "type": "DateTime",      "required": true    }  }}
{  "name": "Request",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "product_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "action_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "current_value": {      "type": "Integer",      "required": true    },    "new_value": {      "type": "Integer",      "required": true    },    "status": {      "name": "RequestStatus",      "type": "Enum",      "required": true,      "valids": [        "Requested",        "Approved",        "Rejected"      ]    },    "created_at": {      "type": "DateTime",      "required": true    },    "updated_at": {      "type": "DateTime",      "required": true    }  }}
{  "name": "RequestInput",  "type": "Object",  "required": true,  "fields": {    "product_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "action_id_name": {      "type": "String",      "required": true,      "min": 20,      "max": 20    },    "new_value": {      "type": "Integer",      "required": true    }  }}
Requested
Approved
Rejected
©Copyright 2010 to 2025 Namira Software Corporation. All rights reserved.