samples/server/petstore/aspnetcore-mixed/src/IO.Swagger/Controllers/AnimalApi.cs
/// <summary>
/// Add a new animal to the store
/// </summary>
/// <param name="body">Animal object that needs to be added to the store</param>
/// <response code="405">Invalid input</response>
Add a new animal to the store
Add a new animal to the store
[HttpPost]
        [Route("/v3/animal")]
        [Authorize(AuthenticationSchemes = ApiKeyAuthenticationHandler.SchemeName)]
        [ValidateModelState]
        [SwaggerOperation("AddAnimal")]
        public virtual IActionResult AddAnimal([FromBody]Animal body)
        { 
            throw new NotImplementedException();
        }
[ HttpPost ] [ Route ( " " ) ] [ Authorize ( AuthenticationSchemes = ApiKeyAuthenticationHandler . SchemeName ) ] [ ValidateModelState ] [ SwaggerOperation ( " " ) ] public virtual IActionResult AddAnimal ( [ FromBody ] Animal body ) { throw new NotImplementedException ( ) ; }
Add a new animal to the store
Add a new animal to the store
//TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405);
Animal
[FromBody]
body
Animal object that needs to be added to the store
Animal object that needs to be added to the store
response
None