Open
Description
Before:
namespace AspBox
{
using Microsoft.AspNetCore.Mvc;
[Route("api/values")]
[ApiController]
public class ValuesController : ControllerBase
{
[Produces(typeof(string))]
[HttpPost]
public IActionResult Create([FromBody]Foo foo)
{
return CreatedAtAction("Get", new { id = foo.Id }, foo);
}
}
}
After:
namespace AspBox
{
using Microsoft.AspNetCore.Mvc;
[Route("api/values")]
[ApiController]
public class ValuesController : ControllerBase
{
[Produces(typeof(Foo))]
[HttpPost]
public IActionResult Create([FromBody]Foo foo)
{
return CreatedAtAction("Get", new { id = foo.Id }, foo);
}
}
}
Metadata
Metadata
Assignees
Labels
No labels