This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
trainav/trainav.web/Controllers/TestController.cs

21 lines
539 B
C#
Raw Normal View History

using System.Diagnostics.CodeAnalysis;
2020-06-11 20:29:16 +02:00
using Microsoft.AspNetCore.Mvc;
2022-04-29 14:59:24 +02:00
namespace trainav.web.Controllers {
[ApiController, Route("api/[controller]")]
2020-06-11 20:29:16 +02:00
public class TestController : ControllerBase {
[HttpGet]
public ApiResponse Get() => new ApiResponse("test", 4);
2020-06-11 20:29:16 +02:00
}
[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")]
public class ApiResponse {
public ApiResponse(string string1, int int1) {
String1 = string1;
Int1 = int1;
2020-06-11 20:29:16 +02:00
}
public string String1 { get; }
public int Int1 { get; }
2020-06-11 20:29:16 +02:00
}
}