To use this cli, we need to first Install Nodejs, then run the following command.
npm i -g namirasoft-data-api-v1
Returns the application health status
ns-data healthz get
Returns the value list of a given table and column
ns-data value list {table} {column}
Returns the metadata category list
ns-data metadatacategory list {filters} {page} {size}
Returns a metadata category by id.
ns-data metadatacategory get {id}
Creates a new metadata category
ns-data metadatacategory create
--entity_id (String)
--category_id (String)
Deletes a metadata category by an id.
ns-data metadatacategory delete {id}
Returns the metadata field list
ns-data metadatafield list {filters} {page} {size}
Returns a metadata field by id.
ns-data metadatafield get {id}
Creates a new metadata field
ns-data metadatafield create
--entity_id (String)
--field_id (String)
--value (String)
--description (String)
Updates a metadata field by an id
ns-data metadatafield update {id}
--entity_id (String)
--field_id (String)
--value (String)
--description (String)
Deletes a metadata field by an id.
ns-data metadatafield delete {id}
Returns the metadata tag list
ns-data metadatatag list {filters} {page} {size}
Returns a metadata tag by id.
ns-data metadatatag get {id}
Creates a new metadata tag
ns-data metadatatag create
--entity_id (String)
--name (String)
--value (String)
--description (String)
Updates a metadata tag by an id
ns-data metadatatag update {id}
--entity_id (String)
--name (String)
--value (String)
--description (String)
Deletes a metadata tag by an id.
ns-data metadatatag delete {id}
Creates a new data
ns-data data create {metadata_id}
--rows (Array)
Deletes a data by an id
ns-data data delete {metadata_id} {id}
Returns the data list
ns-data data list {metadata_id} {filters} {page} {size}
Returns a data by an id
ns-data data get {metadata_id} {id}
Updates a data by an id
ns-data data update {metadata_id} {id}
--row (Array)
Creates a new metadata
ns-data metadata create
--name (String)
--description (String)
--metadata_columns (Array)
Deletes a metadata by an id
ns-data metadata delete {id}
Returns the metadata list
ns-data metadata list {filters} {page} {size}
Returns a metadata by an id
ns-data metadata get {id}
Set a metadata read and write permissions by an id
ns-data metadata set {id}
--readable (Boolean)
--writable (Boolean)
Updates a metadata by an id
ns-data metadata update {id}
--name (String)
--description (String)
--metadata_columns (Array)
Returns the list category list
ns-data listcategory list {filters} {page} {size}
Returns a list category by id.
ns-data listcategory get {id}
Creates a new list category
ns-data listcategory create
--entity_id (String)
--category_id (String)
Deletes a list category by an id.
ns-data listcategory delete {id}
Returns the list field list
ns-data listfield list {filters} {page} {size}
Returns a list field by id.
ns-data listfield get {id}
Creates a new list field
ns-data listfield create
--entity_id (String)
--field_id (String)
--value (String)
--description (String)
Updates a list field by an id
ns-data listfield update {id}
--entity_id (String)
--field_id (String)
--value (String)
--description (String)
Deletes a list field by an id.
ns-data listfield delete {id}
Returns the list tag list
ns-data listtag list {filters} {page} {size}
Returns a list tag by id.
ns-data listtag get {id}
Creates a new list tag
ns-data listtag create
--entity_id (String)
--name (String)
--value (String)
--description (String)
Updates a list tag by an id
ns-data listtag update {id}
--entity_id (String)
--name (String)
--value (String)
--description (String)
Deletes a list tag by an id.
ns-data listtag delete {id}
Returns the list list
ns-data list list {filters} {page} {size}
Creates a new list
ns-data list create
--metadata_id (String)
--name (String)
--description (String)
Deletes a list by an id
ns-data list delete {id}
Returns a list by an id
ns-data list get {id}
Updates a list by an id
ns-data list update {id}
--metadata_id (String)
--name (String)
--description (String)
{  "name": "MetadataCategory",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "Integer",      "required": true    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "entity_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "category_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "createdAt": {      "type": "DateTime",      "required": true    },    "updatedAt": {      "type": "DateTime",      "required": true    }  }}
{  "name": "EntityCategoryInput",  "type": "Object",  "required": true,  "fields": {    "entity_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "category_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    }  }}
{  "name": "MetadataField",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "Integer",      "required": true    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "entity_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "field_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "value": {      "type": "String",      "required": true,      "allowEmpty": false    },    "description": {      "type": "String",      "required": false,      "allowEmpty": true    },    "createdAt": {      "type": "DateTime",      "required": true    },    "updatedAt": {      "type": "DateTime",      "required": true    }  }}
{  "name": "EntityFieldInput",  "type": "Object",  "required": true,  "fields": {    "entity_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "field_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "value": {      "type": "String",      "required": true,      "allowEmpty": false    },    "description": {      "type": "String",      "required": false,      "allowEmpty": true    }  }}
{  "name": "MetadataTag",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "Integer",      "required": true    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "entity_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "name": {      "type": "String",      "required": true,      "allowEmpty": false    },    "value": {      "type": "String",      "required": true,      "allowEmpty": false    },    "description": {      "type": "String",      "required": false,      "allowEmpty": true    },    "createdAt": {      "type": "DateTime",      "required": true    },    "updatedAt": {      "type": "DateTime",      "required": true    }  }}
{  "name": "EntityTagInput",  "type": "Object",  "required": true,  "fields": {    "entity_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "name": {      "type": "String",      "required": true,      "allowEmpty": false    },    "value": {      "type": "String",      "required": true,      "allowEmpty": false    },    "description": {      "type": "String",      "required": false,      "allowEmpty": true    }  }}
{  "name": "Data",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "String",      "required": true,      "allowEmpty": false    },    "user_id": {      "type": "String",      "required": true,      "allowEmpty": false    },    "metadata_id": {      "type": "String",      "required": true,      "allowEmpty": false    },    "product_id": {      "type": "String",      "required": false,      "allowEmpty": true    },    "workspace_id": {      "type": "String",      "required": false,      "allowEmpty": true    },    "level": {      "type": "String",      "required": true,      "allowEmpty": false    },    "message": {      "type": "String",      "required": true,      "allowEmpty": false    },    "created_at": {      "type": "DateTime",      "required": true    }  }}
{  "name": "MetadataInput",  "type": "Object",  "required": true,  "fields": {    "name": {      "type": "String",      "required": false,      "allowEmpty": true    },    "description": {      "type": "String",      "required": false,      "allowEmpty": true    },    "metadata_columns": {      "type": "Array",      "required": true,      "items": [        {          "name": "MetadataColumnInput",          "type": "Object",          "required": true,          "fields": {            "name": {              "type": "String",              "required": true,              "allowEmpty": false            },            "type": {              "name": "MetadataColumnType",              "type": "Enum",              "required": true,              "valids": [                "Boolean",                "Number",                "String",                "Date",                "Object"              ]            },            "required": {              "type": "Boolean",              "required": true            },            "default": {              "type": "String",              "required": false,              "allowEmpty": true            }          }        }      ]    }  }}
{  "name": "MetadataColumnInput",  "type": "Object",  "required": true,  "fields": {    "name": {      "type": "String",      "required": true,      "allowEmpty": false    },    "type": {      "name": "MetadataColumnType",      "type": "Enum",      "required": true,      "valids": [        "Boolean",        "Number",        "String",        "Date",        "Object"      ]    },    "required": {      "type": "Boolean",      "required": true    },    "default": {      "type": "String",      "required": false,      "allowEmpty": true    }  }}
{  "name": "Metadata",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "name": {      "type": "String",      "required": false,      "allowEmpty": true    },    "description": {      "type": "String",      "required": false,      "allowEmpty": true    },    "readable": {      "type": "Boolean",      "required": true    },    "writable": {      "type": "Boolean",      "required": true    },    "createdAt": {      "type": "DateTime",      "required": true    },    "updatedAt": {      "type": "DateTime",      "required": true    }  }}
{  "name": "MetadataFull",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "name": {      "type": "String",      "required": false,      "allowEmpty": true    },    "description": {      "type": "String",      "required": false,      "allowEmpty": true    },    "readable": {      "type": "Boolean",      "required": true    },    "writable": {      "type": "Boolean",      "required": true    },    "createdAt": {      "type": "DateTime",      "required": true    },    "updatedAt": {      "type": "DateTime",      "required": true    },    "metadata_columns": {      "type": "Array",      "required": true,      "items": [        {          "name": "MetadataColumn",          "type": "Object",          "required": true,          "fields": {            "id": {              "type": "Integer",              "required": true            },            "metadata_id": {              "type": "String",              "required": true,              "min": 20,              "max": 20,              "allowEmpty": false            },            "name": {              "type": "String",              "required": true,              "allowEmpty": false            },            "type": {              "name": "MetadataColumnType",              "type": "Enum",              "required": true,              "valids": [                "Boolean",                "Number",                "String",                "Date",                "Object"              ]            },            "required": {              "type": "Boolean",              "required": true            },            "default": {              "type": "String",              "required": false,              "allowEmpty": true            },            "createdAt": {              "type": "DateTime",              "required": true            },            "updatedAt": {              "type": "DateTime",              "required": true            }          }        }      ]    }  }}
{  "name": "MetadataColumn",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "Integer",      "required": true    },    "metadata_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "name": {      "type": "String",      "required": true,      "allowEmpty": false    },    "type": {      "name": "MetadataColumnType",      "type": "Enum",      "required": true,      "valids": [        "Boolean",        "Number",        "String",        "Date",        "Object"      ]    },    "required": {      "type": "Boolean",      "required": true    },    "default": {      "type": "String",      "required": false,      "allowEmpty": true    },    "createdAt": {      "type": "DateTime",      "required": true    },    "updatedAt": {      "type": "DateTime",      "required": true    }  }}
{  "name": "ListCategory",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "Integer",      "required": true    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "entity_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "category_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "createdAt": {      "type": "DateTime",      "required": true    },    "updatedAt": {      "type": "DateTime",      "required": true    }  }}
{  "name": "ListField",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "Integer",      "required": true    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "entity_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "field_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "value": {      "type": "String",      "required": true,      "allowEmpty": false    },    "description": {      "type": "String",      "required": false,      "allowEmpty": true    },    "createdAt": {      "type": "DateTime",      "required": true    },    "updatedAt": {      "type": "DateTime",      "required": true    }  }}
{  "name": "ListTag",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "Integer",      "required": true    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "entity_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "name": {      "type": "String",      "required": true,      "allowEmpty": false    },    "value": {      "type": "String",      "required": true,      "allowEmpty": false    },    "description": {      "type": "String",      "required": false,      "allowEmpty": true    },    "createdAt": {      "type": "DateTime",      "required": true    },    "updatedAt": {      "type": "DateTime",      "required": true    }  }}
{  "name": "List",  "type": "Object",  "required": true,  "fields": {    "id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "user_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "metadata_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "name": {      "type": "String",      "required": false,      "allowEmpty": true    },    "description": {      "type": "String",      "required": false,      "allowEmpty": true    },    "createdAt": {      "type": "DateTime",      "required": true    },    "updatedAt": {      "type": "DateTime",      "required": true    }  }}
{  "name": "ListInput",  "type": "Object",  "required": true,  "fields": {    "metadata_id": {      "type": "String",      "required": true,      "min": 20,      "max": 20,      "allowEmpty": false    },    "name": {      "type": "String",      "required": false,      "allowEmpty": true    },    "description": {      "type": "String",      "required": false,      "allowEmpty": true    }  }}
Boolean
Number
String
Date
Object
©Copyright 2010 to 2024 Namira Software Corporation. All rights reserved.