UNPKG

@ima/plugin-halson-rest-client

Version:
24 lines 965 B
/** * URI generator for the HAL+JSON REST API client. */ export default class HalsonLinkGenerator extends LinkGenerator { /** * @inheritdoc */ createLink(parentEntity: any, resource: any, id: any, parameters: any, serverConfiguration: any): string; /** * Processes the provided URI template by replacing the placeholders with * the provided parameter values. * * @param {string} template URI template to process. * @param {Object<string, (number|string|(number|string)[])>} parameters * Map of URI template's placeholder names to values. * @param {string} apiRoot The URI to the REST API root. * @returns {string} Generated URI. */ _processURITemplate(template: string, parameters: { [x: string]: string | number | (string | number)[]; }, apiRoot: string): string; } import { LinkGenerator } from '@ima/plugin-rest-client'; //# sourceMappingURL=HalsonLinkGenerator.d.ts.map