-
Notifications
You must be signed in to change notification settings - Fork 0
70 Lisamaterjal
Andres Rattur edited this page Feb 8, 2026
·
2 revisions
Iga x-tee liige saab oma turvaserveri kaudu kontrollida, kas teenuseosutaja on oma REST teenused tema alamsüsteemile tarbimiseks avanud teenusepakkuja turvaserveris kasutades x-tee metadata allowedMethods päringut.
curl --location --globoff '{{consumerSecurityServerUrl}}/{{restProtocolVersion}}/{{xRoadInstance}}/{{serviceMemberClass}}/{{serviceMemberCode}}/{{serviceSubsystemCode}}/allowedMethods' \
--header 'X-Road-Client: {{xRoadInstance}}/{{clientMemberClass}}/{{clientMemberCode}}/{{clientSubsystemCode}}' \
--header 'X-Road-Id: {{randomUUID}}'curl --location 'https://example-consumer-security-server.ee/r1/ee-test/GOV/70008658/kotkas-pistrik/allowedMethods' \
--header 'X-Road-Client: ee-test/GOV/70008658/pistrik-client'Metadata allowedMethods näidisvastus
{
"service": [
{
"member_class": "GOV",
"member_code": "70008658",
"subsystem_code": "kotkas-pistrik",
"service_code": "xroadservice",
"endpoint_list": [
{
"method": "GET",
"path": "/api/v1/registry/facility/*"
},
{
"method": "POST",
"path": "/api/v1/balance/record"
},
{
"method": "POST",
"path": "/api/v1/wastenote"
},
{
"method": "GET",
"path": "/api/v1/cls/adr_substance"
},
{
"method": "GET",
"path": "/api/v1/cls/country"
},
{
"method": "GET",
"path": "/api/v1/cls/wastenote_status"
},
{
"method": "GET",
"path": "/api/v1/cls/party_type"
},
{
"method": "GET",
"path": "/api/v1/cls/sewage_sludge_usage_type"
},
{
"method": "GET",
"path": "/api/v1/cls/waste_code"
},
{
"method": "GET",
"path": "/api/v1/cls/rd_code"
},
{
"method": "GET",
"path": "/api/v1/cls/pos_type"
},
{
"method": "GET",
"path": "/api/v1/cls/waste_amount_determination_method"
},
{
"method": "GET",
"path": "/api/v1/cls/adr_packing_group"
},
{
"method": "GET",
"path": "/api/v1/cls/waste_action"
},
{
"method": "GET",
"path": "/api/v1/cls/hp_code"
},
{
"method": "GET",
"path": "/api/v1/balance/record/*"
},
{
"method": "PUT",
"path": "/api/v1/balance/record/*"
},
{
"method": "DELETE",
"path": "/api/v1/balance/record/*"
},
{
"method": "GET",
"path": "/api/v1/wastenote/*"
},
{
"method": "PUT",
"path": "/api/v1/wastenote/*"
},
{
"method": "DELETE",
"path": "/api/v1/wastenote/*"
},
{
"method": "PUT",
"path": "/api/v1/wastenote/*/senders_section_visibility_update"
},
{
"method": "PUT",
"path": "/api/v1/wastenote/*/recipients_section_visibility_update"
},
{
"method": "POST",
"path": "/api/v1/wastenote/*/cancel_confirmation"
},
{
"method": "DELETE",
"path": "/api/v1/wastenote/*/senders_delete"
},
{
"method": "POST",
"path": "/api/v1/wastenote/*/confirm"
},
{
"method": "POST",
"path": "/api/v1/wastenote/*/senders_move"
},
{
"method": "DELETE",
"path": "/api/v1/wastenote/*/carriers_delete"
},
{
"method": "GET",
"path": "/api/v1/balance/records"
},
{
"method": "GET",
"path": "/api/v1/wastenote/list"
},
{
"method": "GET",
"path": "/api/v1/cls/wastenote_access_role"
},
{
"method": "GET",
"path": "/api/v1/registry/facility"
},
{
"method": "GET",
"path": "/api/v1/registry/organised_waste_transport_area"
},
{
"method": "GET",
"path": "/api/v1/registry/ship"
},
{
"method": "GET",
"path": "/api/v1/wastenote/*/senders_cargo"
}
],
"object_type": "SERVICE",
"service_type": "OPENAPI",
"xroad_instance": "ee-test"
}
]
}