dimanche 31 mai 2015

Change the querystring pattern of web api

If we put a variable (say it is myvariable) in the action method, the api's url will look like: api/myservice?myvariable={ myvariable }

But I want to see it like: api/myservice?myvariable={ var }

how can I do it without changing route table?




Aucun commentaire:

Enregistrer un commentaire