umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
20 lines (19 loc) • 669 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const RelationApi_1 = require("../apis/RelationApi");
const testConfig_1 = require("./testConfig");
(async () => {
const config = await (0, testConfig_1.getConfig)();
const api = new RelationApi_1.RelationApi(config);
try {
const result = await api.getRelationByRelationTypeId({
id: "test-relation-type-id",
skip: 0,
take: 10
});
console.log('RelationApi.getRelationByRelationTypeId result:', result);
}
catch (error) {
console.error('RelationApi.getRelationByRelationTypeId error:', error);
}
})();