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 type { ApplicationApiDescriptionModel, ApplicationApiDescriptionModelRequestDto } from '../../../http/modeling/models'; |
|||
import type { |
|||
ApplicationApiDescriptionModel, |
|||
ApplicationApiDescriptionModelRequestDto, |
|||
} from '../../../http/modeling/models'; |
|||
|
|||
@Injectable({ |
|||
providedIn: 'root', |
|||
}) |
|||
export class AbpApiDefinitionService { |
|||
apiName = 'abp'; |
|||
|
|||
|
|||
getByModel = (model: ApplicationApiDescriptionModelRequestDto) => |
|||
this.restService.request<any, ApplicationApiDescriptionModel>({ |
|||
method: 'GET', |
|||
url: '/api/abp/api-definition', |
|||
params: { includeTypes: model.includeTypes }, |
|||
}, |
|||
{ apiName: this.apiName }); |
|||
this.restService.request<any, ApplicationApiDescriptionModel>( |
|||
{ |
|||
method: 'GET', |
|||
url: '/api/abp/api-definition', |
|||
params: { includeTypes: model.includeTypes }, |
|||
}, |
|||
{ apiName: this.apiName }, |
|||
); |
|||
|
|||
constructor(private restService: RestService) { } |
|||
constructor(private restService: RestService) {} |
|||
} |
|||
|
|||
@ -1,7 +1,7 @@ |
|||
|
|||
export interface LanguageInfo { |
|||
cultureName?: string; |
|||
uiCultureName?: string; |
|||
displayName?: string; |
|||
twoLetterISOLanguageName?: string; |
|||
flagIcon?: string; |
|||
} |
|||
|
|||
Loading…
Reference in new issue