You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/test/Volo.Abp.Http.Client.Tests/Volo/Abp/Http/DynamicProxying/RegularTestController.cs

27 lines
777 B

using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.Application.Services;
using Volo.Abp.AspNetCore.Mvc;
namespace Volo.Abp.Http.DynamicProxying
{
[Route("api/regular-test-controller")]
[RemoteService] //Automatically enables API explorer and apply ABP conventions.
//[ApiExplorerSettings(IgnoreApi = false)] //alternative
public class RegularTestController : AbpController, IRegularTestController
{
[HttpGet]
[Route("increment/{value}")]
public int IncrementValue(int value)
{
return value + 1;
}
[HttpGet]
[Route("increment")]
public Task<int> IncrementValueAsync(int value)
{
return Task.FromResult(value + 1);
}
}
}