Development oracle for additional requisites
additional_attributes_readonly.bsl is server-side BSL intended only for the
isolated upo_test development configuration. It is an oracle for comparing
the platform result with the SQL adapter result; it is never a dependency of
the adapter, including in upo_test. It does not write application data or
configuration metadata. additional_attributes_http_handler.bsl is an
optional URL-template handler for manual development checks.
The service must expose two authenticated read-only operations:
additional_attributes.find→НайтиДополнительныеРеквизиты;additional_attributes.storage.resolve→МаршрутЗначенийДополнительногоРеквизита.
The HTTP wrapper must accept/return JSON and restrict calls to the test
network. It must pass only query, include_deleted, a property UUID, and
the public owner selector. Do not accept arbitrary BSL or query text.
Use the result only to create SQL adapter fixtures and verify its semantic
mapping. The adapter itself must not call this endpoint, read its URL, or
depend on a 1C runtime connection. A missing physical source in upo_test
must therefore produce explicit SQL diagnostics, never a platform fallback.
Before publishing:
- Add both modules to a test-only extension or HTTP service in Designer and
bind
ОбработатьRPCtoPOST /rpc. - Restrict the service to read-only calls and test-network access.
- Create or identify a non-deleted test property
Ответственное направление. - Verify that the service returns its UUID, formula identifier, property set,
and value type; then verify the storage-route response for
Справочник.СтруктурныеЕдиницы.