|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using Volo.Abp.ApiVersioning;
|
|
|
|
|
using Volo.Abp.Application.Services;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
|
@ -10,16 +11,23 @@ namespace Volo.Abp.Identity
|
|
|
|
|
[Route("api/v{api-version:apiVersion}/identity/fixture")]
|
|
|
|
|
public class FixtureController : AbpController, IRemoteService
|
|
|
|
|
{
|
|
|
|
|
private readonly IRequestedApiVersion _requestedApiVersion;
|
|
|
|
|
|
|
|
|
|
public FixtureController(IRequestedApiVersion requestedApiVersion)
|
|
|
|
|
{
|
|
|
|
|
_requestedApiVersion = requestedApiVersion;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet, MapToApiVersion("2.0")]
|
|
|
|
|
public int Get()
|
|
|
|
|
public string Get()
|
|
|
|
|
{
|
|
|
|
|
return 41;
|
|
|
|
|
return 41 + " - " + _requestedApiVersion.Current;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet, MapToApiVersion("3.0")]
|
|
|
|
|
public int Get3()
|
|
|
|
|
public string Get3()
|
|
|
|
|
{
|
|
|
|
|
return 42;
|
|
|
|
|
return 42 + " - " + _requestedApiVersion.Current;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
|