Created
July 12, 2017 20:46
-
-
Save andrecarlucci/9515c301abc39caf68f3b76f77e0165c to your computer and use it in GitHub Desktop.
NSwag error generating endpoint address
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace nswagtest.Controllers { | |
[Produces("application/json")] | |
[Route("/api/{subscriptionId}/[controller]")] | |
public class SitesController : Controller { | |
[HttpGet] | |
[ProducesResponseType(typeof(Array), StatusCodes.Status200OK)] | |
public IActionResult List(string searchString) { | |
return Ok(new[] {"with", "parameter"}); | |
} | |
[HttpGet("/api/sites")] | |
[ProducesResponseType(typeof(Array), StatusCodes.Status200OK)] | |
public IActionResult ListAll(string searchString) { | |
return Ok(new[] {"list", "all"}); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment