The feature contains cryptographic keys that are necessary for the protection and operation of a program code fragment or file or the entire application. The feature operation can be limited by time, the number of launches on the network, etc. The set of restrictions is called a "license". If the license restrictions are not met, the feature does not give out a secret, which means the application function associated with the feature does not work.
Get a list of features
Authorization is required. There are no input parameters.
GET /v1.0/features
Sorting and pagination are available for the query. Available sorting fields: number, name. Default values of sorting and pagination parameters: sortby=number&direction=asc&offset=0&limit=100.
The query has an optional parameter archived=false (archived=true) - it is used to display non-archived records (archived records). By default, the query displays all records - both archived and non-archived.
Returns the features array:
"features": [{
"_id": 10029,
"description": "My test feature",
"featurenumber": 1,
"name": "Feature 1",
"pubkey":"F9 E5 EC 6B 52 54 BC 80 45 7D 49 BB F0 61 F9 F2 EC AA 9F 63 79 32 0A B6 77 44 8A E7 16 AC C1 82 8A 14 73 1E 56 B6 EF 53"
"crmid": "",
"refid": ""
},
{
"_id": 10030,
"description": "Feature2",
"featurenumber": 2,
"name": "Feature2",
"pubkey":"11 45 0A B6 77 EC AA 9F 63 79 32 C1 82 8A 14 EC 6B 52 54 BC 80 45 7D 49 BB 73 1E 56 6B 52 54 BC 80 45 7D 34 56 BB AA 99"
"crmid": "",
"refid": ""
}]
'_id' — feature and DB identifier
'description' — text description of the feature purpose (set by the user).
'featurenumber' - integer — feature number (set by the user). The number space is individual for each vendor.
'name' — short text name of the feature (set by the user).
Create a new feature
Authorization is required. RAW JSON input parameters:
{
"featureNumber" : 5,
"featureName" : "PostMan",
"featureDescription" : "Created by postMan",
"archived": false,
"crmId": "",
"refId": ""
}
Create a feature with an existing number is prohibited.
POST /v1.0/features
Returns the feature element:
{
"feature": {
"_id": 10032,
"description": "Created by postMan",
"featurenumber": 5,
"name": "PostMan",
"pubkey":"11 45 0A B6 77 EC AA 9F 63 79 32 C1 82 8A 14 EC 6B 52 54 BC 80 45 7D 49 BB 73 1E 56 6B 52 54 BC 80 45 7D 34 56 BB AA 99"
"crmid": "",
"refid": ""
}
}
Change the feature description
Authorization is required. RAW JSON input parameters:
{
"featureName" : "PostManBy",
"featureDescription" : "Created by postManBy",
"archived": false,
"crmId": "",
"refId": ""
}
PUT /v1.0/features/{id}
Returns the feature element:
{
"feature": {
"_id": 10032,
"description": "Created by postManBy",
"featurenumber": 5,
"name": "PostManBy",
"pubkey":"11 45 0A B6 77 EC AA 9F 63 79 32 C1 82 8A 14 EC 6B 52 54 BC 80 45 7D 49 BB 73 1E 56 6B 52 54 BC 80 45 7D 34 56 BB AA 99"
"crmid": "",
"refid": ""
}
}
Move a feature to and from an archive
Authorization is required. RAW JSON input parameters:
1 |
|
PUT /v1.0/features/{id}/changearchivestatus
Returns the feature element:
{
"feature": {
"_id": 22,
"archivationdate": 1580804346,
"archived": true,
"crmid": "",
"description": "Main module",
"featurenumber": 1,
"name": "Main module",
"pubkey": "B2 AA 8D 31 A2 07 0C B9 AB 42 48 6D F6 C0 3C EA CA AE 9E 04 FE 28 9A 72 6E 76 81 1F FA A5 67 93 3A DE 7E 0C 07 BA 88 AB",
"refid": ""
}
}
Remove a feature
Authorization is required. There are no input parameters.
DELETE /v1.0/features/{id}
Get a feature by ID
Authorization is required. There are no input parameters.
GET /v1.0/features/{id}
Returns the feature element:
{
"feature": {
"_id": 10032,
"description": "Created by postManBy",
"featurenumber": 5,
"name": "PostManBy",
"pubkey":"11 45 0A B6 77 EC AA 9F 63 79 32 C1 82 8A 14 EC 6B 52 54 BC 80 45 7D 49 BB 73 1E 56 6B 52 54 BC 80 45 7D 34 56 BB AA 99"
"crmid": "",
"refid": ""
}
}
Get the value of the next feature number (use when adding a new feature)
Authorization is required. There are no input parameters.
GET /v1.0/getnextfeaturenumber
Returns:
{
"nextfeaturenumber": 346
}