Getting information about the metadata class: getMeta¶
The request is made along the path <server URL>/rest/<service name>/getMeta/<class name>
, where the class name is indicated with a namespace.
You can specify in the request: doc: additional parameters <meta_query_parameters>:
version
namespace
Query example:
https://localhost:8888/rest/meta/getMeta/class_text@develop-and-test
Information on the class_text
class in the namespace develop-and-test
will be requested, an example response:
{ namespace: 'develop-and-test',
isStruct: false,
metaVersion: '2.0.7',
key: [ 'id' ],
semantic: '',
name: 'class_text',
version: '',
caption: 'Class "Text [1]"',
ancestor: null,
container: null,
creationTracker: '',
changeTracker: '',
history: 0,
journaling: false,
compositeIndexes: null,
properties:
[ { orderNumber: 10,
name: 'id',
caption: 'Identifier',
type: 12,
size: 24,
decimals: 0,
allowedFileTypes: null,
maxFileCount: 0,
nullable: false,
readonly: false,
indexed: true,
unique: true,
autoassigned: true,
hint: null,
defaultValue: null,
refClass: '',
itemsClass: '',
backRef: '',
backColl: '',
binding: '',
semantic: null,
selConditions: null,
selSorting: [],
selectionProvider: null,
indexSearch: false,
eagerLoading: false,
formula: null },
{ orderNumber: 20,
name: 'text_text',
caption: 'Text [1]',
type: 1,
size: null,
decimals: 0,
allowedFileTypes: null,
maxFileCount: 0,
nullable: true,
readonly: false,
indexed: true,
unique: false,
autoassigned: false,
hint: null,
defaultValue: null,
refClass: '',
itemsClass: '',
backRef: '',
backColl: '',
binding: '',
semantic: null,
selConditions: null,
selSorting: [],
selectionProvider: null,
indexSearch: false,
eagerLoading: false,
formula: null },
{ orderNumber: 30,
name: 'text_multilinetext',
caption: 'Multiline text [7]',
type: 1,
size: null,
decimals: 0,
allowedFileTypes: null,
maxFileCount: 0,
nullable: true,
readonly: false,
indexed: true,
unique: false,
autoassigned: false,
hint: null,
defaultValue: null,
refClass: '',
itemsClass: '',
backRef: '',
backColl: '',
binding: '',
semantic: null,
selConditions: null,
selSorting: [],
selectionProvider: null,
indexSearch: false,
eagerLoading: false,
formula: null },
{ orderNumber: 40,
name: 'text_formattext',
caption: 'Formatted text [8]',
type: 1,
size: null,
decimals: 0,
allowedFileTypes: null,
maxFileCount: 0,
nullable: true,
readonly: false,
indexed: true,
unique: false,
autoassigned: false,
hint: null,
defaultValue: null,
refClass: '',
itemsClass: '',
backRef: '',
backColl: '',
binding: '',
semantic: null,
selConditions: null,
selSorting: [],
selectionProvider: null,
indexSearch: false,
eagerLoading: false,
formula: null } ] }
The example in dnt: test/modules/rest/metadatasrv.spec.js
/checking metadata service/# accessing info about metadata class: getMeta