UNPKG

ngx-restful-client

Version:

The ultimate Angular library to exquisitely declare and implement the REST APIs you'll use in your application.

24 lines (23 loc) 857 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.concatPath = function (root, child) { return "" + root + child; }; /** * <p> * Define um RestResource que pode ter um RestResource pai. * Se você quiser declarar sua API, mas não quiser usar a implementação HttpClient incorporada, esse é o caminho. * </p> * <p> * Defines a RestResource that may have a parent RestResource. * If you want to declare your API but don't want to make use of the embedded HttpClient implementation, that's the way. * </p> */ var LeanRestResource = /** @class */ (function () { function LeanRestResource(path, parent) { this.uri = path; if (!!parent) { this.uri = exports.concatPath(parent.uri, path); } } return LeanRestResource; }()); exports.LeanRestResource = LeanRestResource;