Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| [HttpGet] | |
| [ODataRoute("ExpiredTokens(Id={Id},ExpiryDate={ExpiryDate})")] | |
| public IHttpActionResult WhateverName([FromODataUri]int Id, [FromODataUri]string ExpiryDate) | |
| { | |
| return Ok(_repository.GetCount(Id, ExpiryDate)); | |
| } | |
| /// Then make following request | |
| GET ~/ExpiredTokens(Id=10,ExpiryDate='2019-06-30') |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/