if have following controller:
public class retrievalcontroller : apicontroller { [route("api/user")] public httpresponsemessage retrievesomethingkthx() { if (true) { return request.createresponse(system.net.httpstatuscode.ok); } return request.createresponse(system.net.httpstatuscode.notfound); } } is there way on (such in owin) read path. e.g.: request.path == "http://www.website.com/api/user" , therefore reflection information method?
note not relying on route have controller name or "action" name necessarily. assume lives in web api routing pull method info based on route.
Comments
Post a Comment