mirror of https://github.com/abpframework/abp.git
7 changed files with 1437 additions and 1413 deletions
File diff suppressed because it is too large
@ -1,20 +1,25 @@ |
|||||
import { RestService } from '../../../../../../services/rest.service'; |
import { RestService } from '@abp/ng.core'; |
||||
import { Injectable } from '@angular/core'; |
import { Injectable } from '@angular/core'; |
||||
import type { ApplicationApiDescriptionModel, ApplicationApiDescriptionModelRequestDto } from '../../../http/modeling/models'; |
import type { |
||||
|
ApplicationApiDescriptionModel, |
||||
|
ApplicationApiDescriptionModelRequestDto, |
||||
|
} from '../../../http/modeling/models'; |
||||
|
|
||||
@Injectable({ |
@Injectable({ |
||||
providedIn: 'root', |
providedIn: 'root', |
||||
}) |
}) |
||||
export class AbpApiDefinitionService { |
export class AbpApiDefinitionService { |
||||
apiName = 'abp'; |
apiName = 'abp'; |
||||
|
|
||||
getByModel = (model: ApplicationApiDescriptionModelRequestDto) => |
getByModel = (model: ApplicationApiDescriptionModelRequestDto) => |
||||
this.restService.request<any, ApplicationApiDescriptionModel>({ |
this.restService.request<any, ApplicationApiDescriptionModel>( |
||||
method: 'GET', |
{ |
||||
url: '/api/abp/api-definition', |
method: 'GET', |
||||
params: { includeTypes: model.includeTypes }, |
url: '/api/abp/api-definition', |
||||
}, |
params: { includeTypes: model.includeTypes }, |
||||
{ apiName: this.apiName }); |
}, |
||||
|
{ apiName: this.apiName }, |
||||
|
); |
||||
|
|
||||
constructor(private restService: RestService) { } |
constructor(private restService: RestService) {} |
||||
} |
} |
||||
|
|||||
@ -1,7 +1,7 @@ |
|||||
|
|
||||
export interface LanguageInfo { |
export interface LanguageInfo { |
||||
cultureName?: string; |
cultureName?: string; |
||||
uiCultureName?: string; |
uiCultureName?: string; |
||||
displayName?: string; |
displayName?: string; |
||||
|
twoLetterISOLanguageName?: string; |
||||
flagIcon?: string; |
flagIcon?: string; |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue