mirror of https://github.com/abpframework/abp.git
5 changed files with 2 additions and 78 deletions
@ -1,46 +0,0 @@ |
|||||
using Microsoft.AspNetCore.Mvc; |
|
||||
using Volo.Abp.ApiVersioning; |
|
||||
using Volo.Abp.Application.Services; |
|
||||
using Volo.Abp.AspNetCore.Mvc; |
|
||||
|
|
||||
namespace Volo.Abp.Identity |
|
||||
{ |
|
||||
//TODO: This is just a test controller and will be removed later
|
|
||||
[ApiVersion("3.0")] |
|
||||
[ApiVersion("2.0", Deprecated = true)] |
|
||||
[Route("api/v{apiVersion:apiVersion}/identity/fixture")] |
|
||||
public class FixtureController : AbpController, IRemoteService |
|
||||
{ |
|
||||
private readonly IRequestedApiVersion _requestedApiVersion; |
|
||||
|
|
||||
public FixtureController(IRequestedApiVersion requestedApiVersion) |
|
||||
{ |
|
||||
_requestedApiVersion = requestedApiVersion; |
|
||||
} |
|
||||
|
|
||||
[HttpGet, MapToApiVersion("2.0")] |
|
||||
public string Get() |
|
||||
{ |
|
||||
return 41 + " - " + _requestedApiVersion.Current; |
|
||||
} |
|
||||
|
|
||||
[HttpGet, MapToApiVersion("3.0")] |
|
||||
public string Get3() |
|
||||
{ |
|
||||
return 42 + " - " + _requestedApiVersion.Current; |
|
||||
} |
|
||||
|
|
||||
[HttpPost] |
|
||||
public int Post() |
|
||||
{ |
|
||||
return 43; |
|
||||
} |
|
||||
|
|
||||
[HttpPost] |
|
||||
[Route("{id}")] |
|
||||
public int Post(int id) |
|
||||
{ |
|
||||
return id; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
@ -1,26 +0,0 @@ |
|||||
using Microsoft.AspNetCore.Mvc; |
|
||||
using Volo.Abp.ApiVersioning; |
|
||||
using Volo.Abp.Application.Services; |
|
||||
using Volo.Abp.AspNetCore.Mvc; |
|
||||
|
|
||||
namespace Volo.Abp.Identity.V4 |
|
||||
{ |
|
||||
//TODO: This is just a test controller and will be removed later
|
|
||||
[ApiVersion("4.0")] |
|
||||
[Route("api/v{apiVersion:apiVersion}/identity/fixture")] |
|
||||
public class FixtureController : AbpController, IRemoteService |
|
||||
{ |
|
||||
private readonly IRequestedApiVersion _requestedApiVersion; |
|
||||
|
|
||||
public FixtureController(IRequestedApiVersion requestedApiVersion) |
|
||||
{ |
|
||||
_requestedApiVersion = requestedApiVersion; |
|
||||
} |
|
||||
|
|
||||
[HttpGet] |
|
||||
public string Get() |
|
||||
{ |
|
||||
return 41 + " - " + _requestedApiVersion.Current; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue