Table of Contents
...
Section | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
Section | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Field | Explanation |
---|---|
Vc code | This is the register code, this specifies which data the end-point is serving and updating. |
ImportTag | This currently has no effect on anything |
MainKey | This is the name of the main key (primary key) for this register. You will need to know this, to configure the end-point properly. Most of the time you can guess this name by the "main" field in the register. For registers with numbered records this will typically be "SerNr", for records with a Code field it's typically "Code", but can sometimes also be called "MainKey" or something else. To be safe, you will need to consult with a HAL programmer, if you are not one yourself. |
Import date and time | These are informative fields and show when the definition was imported. |
Support variable fields | These are used in more advanced use cases of the API. These support variables ar maintained throughout the lifecycle of each API request and are available in all HAL hook functions. You can store temporary data (e.g. implementing a cache of some data you do not wish to be re-read from the database for each record in a record set). You can specify multiple variables or even arrays or vectors of a variable type, depending on your need. |
Block | Checked when the end-point is made for a block not register. |
Export Attachments | When checked, information about attached files will be included in the JSON data for records accessed via this end-point. |
View Attachments | When checked, an additional interface will be generated for attachment retrieval. |
Add Attachments | When checked, an additional interface will be generated for adding attachments to records accessed via this end-point. |
Delete Attachments | When checked, an additional interface will be generated for deleting attachments to records accessed via this end-point. |
Do not use SequenceNumbers | No longer necessary, used in older versions of the API - the usage of SequenceNumbers for registers is detected automatically. |
Field configuration | |
Column | Explanation |
Name, Type, Length, Location | These describe the field's parameters in the database structure. |
In list | This determines whether the field is included when requesting the short/list version of the data. Typically used for retrieving record list with general data of the record (for displaying in record lists or other similar data overviews). |
In full | This determines whether the field is included in the full set of record's data. |
Filter by | Whether to enable filtering by this field when making API requests. |
Index names (3 columns) | These all serve the same purpose - for listing comma-separated index names in which the field is included. This then enables proper sorting by these indexes. |
Read API
Write API
Section | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...