Browse Source
Merge pull request #10451 from abpframework/muhammedaltug-patch-1
Update api name args
pull/10458/head
Bunyamin Coskuner
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with
7 additions and
7 deletions
-
npm/ng-packs/packages/schematics/src/commands/api/schema.json
-
npm/ng-packs/packages/schematics/src/commands/proxy-add/schema.json
-
npm/ng-packs/packages/schematics/src/commands/proxy-refresh/schema.json
-
npm/ng-packs/packages/schematics/src/commands/proxy-remove/schema.json
-
npm/ng-packs/packages/schematics/src/models/generate-proxy-schema.ts
-
npm/ng-packs/packages/schematics/src/utils/source.ts
|
|
|
@ -13,7 +13,7 @@ |
|
|
|
}, |
|
|
|
"x-prompt": "Please enter backend module name. (default: \"app\")" |
|
|
|
}, |
|
|
|
"api-name": { |
|
|
|
"apiName": { |
|
|
|
"description": "Backend api name, a.k.a. remoteServiceName", |
|
|
|
"type": "string", |
|
|
|
"$default": { |
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ |
|
|
|
}, |
|
|
|
"x-prompt": "Please enter backend module name. (default: \"app\")" |
|
|
|
}, |
|
|
|
"api-name": { |
|
|
|
"apiName": { |
|
|
|
"description": "Backend api name, a.k.a. remoteServiceName", |
|
|
|
"type": "string", |
|
|
|
"$default": { |
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ |
|
|
|
}, |
|
|
|
"x-prompt": "Please enter backend module name. (default: \"app\")" |
|
|
|
}, |
|
|
|
"api-name": { |
|
|
|
"apiName": { |
|
|
|
"description": "Backend api name, a.k.a. remoteServiceName", |
|
|
|
"type": "string", |
|
|
|
"$default": { |
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ |
|
|
|
}, |
|
|
|
"x-prompt": "Please enter backend module name. (default: \"app\")" |
|
|
|
}, |
|
|
|
"api-name": { |
|
|
|
"apiName": { |
|
|
|
"description": "Backend api name, a.k.a. remoteServiceName", |
|
|
|
"type": "string", |
|
|
|
"$default": { |
|
|
|
|
|
|
|
@ -7,7 +7,7 @@ export interface GenerateProxySchema { |
|
|
|
/** |
|
|
|
* Backend api name, a.k.a. remoteServiceName |
|
|
|
*/ |
|
|
|
['api-name']?: string; |
|
|
|
apiName?: string; |
|
|
|
|
|
|
|
/** |
|
|
|
* Source Angular project for API definition URL & root namespace resolution |
|
|
|
|
|
|
|
@ -15,7 +15,7 @@ import { interpolate } from './common'; |
|
|
|
import { readEnvironment, resolveProject } from './workspace'; |
|
|
|
|
|
|
|
export function createApiDefinitionGetter(params: GenerateProxySchema) { |
|
|
|
const apiName = params['api-name'] || 'default'; |
|
|
|
const apiName = params.apiName || 'default'; |
|
|
|
|
|
|
|
return async (host: Tree) => { |
|
|
|
const source = await resolveProject(host, params.source!); |
|
|
|
@ -46,7 +46,7 @@ async function getApiDefinition(sourceUrl: string) { |
|
|
|
} |
|
|
|
|
|
|
|
export function createRootNamespaceGetter(params: GenerateProxySchema) { |
|
|
|
const apiName = params['api-name'] || 'default'; |
|
|
|
const apiName = params.apiName || 'default'; |
|
|
|
|
|
|
|
return async (tree: Tree) => { |
|
|
|
const project = await resolveProject(tree, params.source!); |
|
|
|
|