-
Notifications
You must be signed in to change notification settings - Fork 0
70 Lisamaterjal
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"
}
]
}Käesolevas peatükis on toodud viited andmekogude avaandmete teenustele, millest PISTRIK andmeid tarbib või mida on võimalik PISTRIKuga liidestuvas infosüsteemis kasutada
VEIS-is (Välisriikide ja rahvusvaheliste organisatsioonide esinduste, rahvusvaheliste organisatsioonide ja rahvusvahelise kokkuleppega loodud institutsioonide ning nende isikkoosseisu andmekogus) registreeritud organisatsioonide, saatkondade ja esinduste andmed on kättesaadavad:
- https://opendata.vm.ee/saatkonnad.xml
- https://opendata.vm.ee/esindused.xml
- https://opendata.vm.ee/organisatsioonid.xml
Autocomplete, ehk automaatne ettevõtja nimede täitmine, tagastab vastuseks sisestatud sümbolitele vastava kehtiva ärinimede ning registrikoodide loetelu. Autocomplete tagastab maksimaalselt 10 esimest vastust, järjestatult ettevõtte normaliseeritud kehtiva ärinime järgi. Lisainfo autocomplete teenuse kohta:
Äriregistri avaandmete allalaadimisvõimaluste kohta saab lisainfot:
PISTRIKus kasutatakse pealelaadimis- ja mahalaadimiskoha aadressiväljas tippimise peale kasutajale pakutavate aadresside teenusena In-ADS-i gazetteer API teenust. In-ADS-i ja gazetteer teenuse lisainfot leiab:
PISTRIKus kasutatava gazetteer teenuse päringu URL: https://inaadress.maaamet.ee/inaadress/gazetteer?app=PISTRIK&results=10&unik=0&address={userTypedAddress}