This commit is contained in:
2025-04-24 18:31:27 +08:00
commit 9340f5253e
2796 changed files with 1387124 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
namespace SwashbuckleEx.WebApiTest.Controllers
{
/// <summary>
/// 测试控制器
/// </summary>
public class TestAController:ApiController
{
/// <summary>
/// 获取通用ID
/// </summary>
/// <returns></returns>
[HttpGet]
public Guid GetId()
{
return Guid.NewGuid();
}
/// <summary>
/// 获取结果
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
public string GetResult(string id)
{
return id;
}
}
}