UNPKG

@itcomp/abp-rn

Version:

CLI for generating proxy for react native abp templates.

27 lines 850 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RestService = void 0; class RestService { request(request, config) { let apiName = config.apiName; return this.getApi(apiName).request(request).then(response => { return response.data; }); } } exports.RestService = RestService; // let options = { // url: "http://sgscore/api/abp/api-definition?IncludeTypes=true", // module: "config", // rootNamespace: "Itcomp.Sgs.Config", // targetFolder: "sample", // } // var executor = new Executor(options); // executor.getApiDefinition().then(()=>{ // executor.configureServicesAndDtos() // .renderFiles() // .saveFiles() // }).catch(error=>{ // console.error(error) // }) //# sourceMappingURL=index.js.map