You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
497 B
C#
23 lines
497 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace OcelotStudy.WebApiA.Controllers
|
|
{
|
|
[Route("api/[controller]/[action]")]
|
|
[ApiController]
|
|
public class ServiceAController : ControllerBase
|
|
{
|
|
public IActionResult Ping()
|
|
{
|
|
var data = new { Name="服务A",Describe="测试服务A" };
|
|
|
|
return Ok(data);
|
|
}
|
|
}
|
|
}
|