-
Story
-
Resolution: Done
-
Medium
-
El Alto Release
-
None
-
None
-
Frankfurt Sp1: 11/4 - 11/22
data type and entry schema in Data Dictionary drop down should display all the primitive data types + Complex data types which are the model types that start with dt- (dataType-)
Primitive Data Types: String, Boolean, Integer, Float, Double, Null
complex data types: list of complex data types are retrieved using below api to be made available
10.12.5.149:30184/api/v1/model-type/by-definition/data_type
This api return you list of all the data types. You will just display the modelName in the drop down for complex data types.
Output example
{{
[
{ "modelName": "dt-license-key", "derivedFrom": "tosca.datatypes.Root", "definitionType": "data_type", "definition": { "version": "1.0.0", "description": "This is dt-plicense-key Data Type", "properties": { "license-key":
{ "required": true, "type": "string" }}, "derived_from": "tosca.datatypes.Root" }, "description": "This is dt-plicense-key Data Type", "version": "1.0.0", "tags": "dt-license-key,tosca.datatypes.Root,data_type", "creationDate": "2019-08-13T16:49:46.000Z", "updatedBy": "System" },
{ "modelName": "dt-netbox-ip", "derivedFrom": "tosca.datatypes.Root", "definitionType": "data_type", "definition": { "version": "1.0.0", "description": "This is Netbox IP Data Type", "properties": { "address":
, "id":
{ "required": true, "type": "integer" }}, "derived_from": "tosca.datatypes.Root" }, "description": "This is Netbox IP Data Type", "version": "1.0.0", "tags": "dt-netbox-ip,tosca.datatypes.Root,data_type", "creationDate": "2019-08-13T16:49:45.000Z", "updatedBy": "System" },
{ "modelName": "dt-system-packages", "derivedFrom": "tosca.datatypes.Root", "definitionType": "data_type", "definition": { "description": "This represent System Package Data Type", "version": "1.0.0", "properties": { "type": { "required": true, "type": "string", "constraints": [
]
}, "package": { "required": true, "type": "list", "entry_schema":
}
}, "derived_from": "tosca.datatypes.Root" }, "description": "This represent System Package Data Type", "version": "1.0.0", "tags": "dt-system-packages,tosca.datatypes.Root,data_type", "creationDate": "2019-08-13T16:49:46.000Z", "updatedBy": "System" },
{ "modelName": "dt-v4-aggregate", "derivedFrom": "tosca.datatypes.Root", "definitionType": "data_type", "definition": { "version": "1.0.0", "description": "This is dt-v4-aggregate Data Type", "properties": { "ipv4-address":
, "ipv4-plen":
{ "required": false, "type": "integer" }}, "derived_from": "tosca.datatypes.Root" }, "description": "This is dt-v4-aggregate Data Type", "version": "1.0.0", "tags": "dt-v4-aggregate,tosca.datatypes.Root,data_type", "creationDate": "2019-08-13T16:49:46.000Z", "updatedBy": "System" },
{ "modelName": "tosca.datatypes.Credential", "derivedFrom": "tosca.datatypes.Root", "definitionType": "data_type", "definition": { "version": "1.0.0", "description": "Credential", "properties": { "protocol":
, "token_type":
{ "required": true, "type": "string", "default": "password" }, "token":
{ "required": false, "type": "string" }, "keys": { "required": false, "type": "list", "entry_schema":
{ "type": "string" }}, "user":
{ "required": false, "type": "string" }}, "derived_from": "tosca.datatypes.Root" }, "description": "Credential", "version": "1.0.0", "tags": "tosca.datatypes.Credential,tosca.datatypes.Root,data_type", "creationDate": "2019-08-13T16:49:46.000Z", "updatedBy": "System" }
]}}