How can i implement the following routing scheme
http://localhost/vitualdir/prefix/{id}/methodname?{encoded json defenition of object}
using asp.net webapi 2 route attributes ? My suggestions are :
firstly: add [RoutePrefix("prefix")] to controller
secondly : implement the following defenition:
[Route("~/{id}/methodname")]
[HttpGet]
public async Task<IHttpActionResult> methodname([FromUri] JsonObjectFromUri object, int id)
{
But that code is not working as i want. Could you help me with it ?