asp.net web api - How to get the correct webapi description for customized route -
i created customized httpcontrollerselector class support area in asp.net webapi, e.g. route template "api/{area}/{controller}/{action}/id" can reflected controller class named xxx.controllers.area.dummycontroller. use below statement api description,
globalconfiguration.configuration.services.getapiexplorer().apidescriptions but found relativepath property in apidescription not correct, miss area, e.g. url: api/dummyarea/dummycontroller/list corresponding relativepath api/dummycontroller/list.
do know how correct relativepath?
Comments
Post a Comment