Код: Выделить всё
"dependencies": {
"@abp/ng.account": "~8.1.4",
"@abp/ng.components": "~8.1.4",
"@abp/ng.core": "~8.1.4",
"@abp/ng.oauth": "~8.1.4",
"@abp/ng.identity": "~8.1.4",
"@abp/ng.setting-management": "~8.1.4",
"@abp/ng.tenant-management": "~8.1.4",
"@abp/ng.theme.shared": "~8.1.4",
"@abp/ng.theme.basic": "~8.1.4",
"@angular/animations": "~17.3.0",
"@angular/common": "~17.3.0",
"@angular/compiler": "~17.3.0",
"@angular/core": "~17.3.0",
"@angular/forms": "~17.3.0",
"@angular/localize": "~17.3.0",
"@angular/platform-browser": "~17.3.0",
"@angular/platform-browser-dynamic": "~17.3.0",
"@angular/router": "~17.3.0",
...
}
"devDependencies": {
"@abp/ng.schematics": "~8.1.4",
....
}
< /p>
Вот пример одной из моих конечных точек API версии: < /p>
Код: Выделить всё
[HttpGet]
[ApiVersion(version: "2.0")]
[Route("api/lookups/v{version:apiVersion}/classifications")]
[Authorize(Policy = DefaultAPIPolicies.PolicyNameForManager)]
public async Task GetClassificationsAsync_V2()
{
return await _GetClassificationsQueryHandler.GetAsync();
}
< /code>
Что я попробовал: < /p>
Я подтвердил, что обе версии присутствуют в чванстве. /Code> Команда, но, похоже, нет возможности указать версию API.
Я также проверил на наличие любой конфигурации прокси в Appsettings.json Вопросы
Как я могу сгенерировать угловые прокси для конечных точек обеих версий?
Подробнее здесь: https://stackoverflow.com/questions/791 ... -version-1
Мобильная версия