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#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace OcelotStudy.WebApiB.Controllers
{
[Route("api/[controller]/[action]")]
[ApiController]
public class ServiceBController : ControllerBase
{
public IActionResult Ping()
{
var data = new { Name="服务B",Describe="测试服务B" };
return Ok(data);
}
}
}