This...
[HttpPut("{id}")]
...or this...
[HttpDelete]
[Route("{id}")]
...are legit, but you don't have to pass a variable in a forward slash seperated chunk of the route. You can just make the route one chunk longer like so:
[HttpGet("SomethingErOther")]
No comments:
Post a Comment