Код: Выделить всё
[ApiController]
[Route("/[controller]")]
public class WeatherForecastController : ControllerBase
Код: Выделить всё
[HttpGet]
public async Task Get()
Код: Выделить всё
/WeatherForecast
/api/something/else/WeatherForecast
Код: Выделить всё
"servers": [
{
"url": "/api/something/else"
}
],
"paths": {
"/WeatherForecast": {
"get": {
"tags": [
"WeatherForecast"
],

Мне интересно, есть ли способ заставить SwaggerUI добавлять к конечным точкам префикс значения, установленного с помощью UsePathBase
Подробнее здесь: https://stackoverflow.com/questions/684 ... umentation
Мобильная версия