From 8b4c18d143cba431ec08eba94f26c70fe76152c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Thu, 28 Sep 2017 09:44:24 +0300 Subject: [PATCH] Added a test controller for versioning. --- .../VersioningTests/CallsController.cs | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/Volo.Abp.Identity.HttpApi.Host/VersioningTests/CallsController.cs diff --git a/src/Volo.Abp.Identity.HttpApi.Host/VersioningTests/CallsController.cs b/src/Volo.Abp.Identity.HttpApi.Host/VersioningTests/CallsController.cs new file mode 100644 index 0000000000..cf590e964a --- /dev/null +++ b/src/Volo.Abp.Identity.HttpApi.Host/VersioningTests/CallsController.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Microsoft.AspNetCore.Mvc; +using Volo.Abp.Application.Dtos; +using Volo.Abp.AspNetCore.Mvc; + +namespace Volo.Abp.Identity.HttpApi.Host.VersioningTests +{ + [Route("api/calls")] + public class CallsController : AbpController + { + private static List _calls = new List + { + new CallDto {Id = 1, Number = "123456"}, + new CallDto { Id = 2, Number = "123457" } + }; + + [HttpGet] + public List GetList() + { + return _calls; + } + } + + public class CallDto : EntityDto + { + public string Number { get; set; } + } +}