Configuring access to the registry’s API views
🌐 This document is available in both English and Ukrainian. Use the language toggle in the top right corner to switch between versions. |
1. General description
In addition to granting access to the registry for other registries or external systems in the Control Plane administrative panel (see Configuring registry access), the registry administrator must open access to views and REST API endpoints generated based on these views, at the data model level.
Setting access to the REST API views of the registry is done using unique access attributes at the Liquibase data model level. This allows access to the registry’s API, created from the corresponding views, to other registries on the Platform or external systems.
For this, a particular tag <exposeSearchCondition>
is used.
A description of the <exposeSearchCondition> tag can also be reviewed on the page Liquibase extensions for data modeling.
|
2. Main attributes
- The tag accepts the following attributes:
-
Table 1. Attributes of the <exposeSearchCondition> tag Attribute Purpose Default Value name
Name of the search criterion
Not specified
platform
Provides access to views and the REST API of the registry for another registry on the Platform
false
externalSystem
Provides access to views and the REST API of the registry for an external system
false
trembita
Provides access to the registry views for SEV DEIR member services through the "Trembita" BOS interface using the SOAP protocol
false
publicAccess
Determines if there should be public access to the search criterion/view
false
3. Examples
<ext:exposeSearchCondition name="exampleViewName" platform="true" externalSystem="true" trembita="false"/>
<exposeSearchCondition publicAccess="true" name="vpo_person_type_contains_name_public_test"/>
4. Recommendations
-
All attributes have a default value of
false
. Consider this when working with the<exposeSearchCondition>
tag. -
Ensure that the
name
attribute is always specified, as it is essential for identifying the search criterion.