Browse Source

feat: update api definition model in schematics

pull/5137/head
Arman Ozak 6 years ago
parent
commit
d2af128d30
  1. 12
      npm/ng-packs/packages/schematics/src/models/api-definition.ts

12
npm/ng-packs/packages/schematics/src/models/api-definition.ts

@ -1,3 +1,5 @@
import { eBindingSourceId } from '../enums';
export interface ApiDefinition {
modules: Record<string, Module>;
types: Record<string, Type>;
@ -41,12 +43,12 @@ export interface Action {
httpMethod: string;
url: string;
supportedVersions: string[];
parametersOnMethod: ParameterOnMethod[];
parameters: Parameter[];
parametersOnMethod: ParameterInSignature[];
parameters: ParameterInBody[];
returnValue: ReturnValue;
}
export interface ParameterOnMethod {
export interface ParameterInSignature {
name: string;
typeAsString: string;
type: string;
@ -55,7 +57,7 @@ export interface ParameterOnMethod {
defaultValue: any;
}
export interface Parameter {
export interface ParameterInBody {
nameOnMethod: string;
name: string;
type: string;
@ -63,7 +65,7 @@ export interface Parameter {
isOptional: boolean;
defaultValue: any;
constraintTypes: string[] | null;
bindingSourceId: string;
bindingSourceId: eBindingSourceId;
descriptorName: string;
}

Loading…
Cancel
Save