asp.net web api - something wrong with wep api route -


my registered routes mapping looks this:

config.routes.maphttproute(     name: "withactionapi",     routetemplate: "api/{controller}/{action}/{id}",         defaults: new { id = system.web.http.routeparameter.optional } ); config.routes.maphttproute(     name: "defaultapi",     routetemplate: "api/{controller}/{id}",         defaults: new { id = routeparameter.optional } ); 

and, controller looks this:

// [route("???????????")] [httpget] public httpresponsemessage getpatientproviderdata([fromuri]  patientproviderincomingdto ppdto) {     var response = request.createresponse(httpstatuscode.ok, _claimdetailservice.getpatientproviderdata(ppdto.patientid, ppdto.facilitygroupid, ppdto.claimid));     return response; } 

i'm making call this:

http://localhost:xxxx/api/claims/getpatientproviderdata?patientid=180&facilitygroupid=9&claimid=21 

but, it's not hitting url. expecting hit url , supplied parameters converted dto.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -