asp.net web api - OData v4 Custom functions without namespace in WebAPI 2.2 -
we want use odatav4 on webapi 2.2 our new projects there 1 no-go: url design. have delivery json data , binary data (images) through our api.
is there possibility avoid namespace of custom functions on odata routes? /odata/customers/getbyname('name')
instead of /odata/customers/customerservice.getbyname('name')
and how should response binary data (jpeg images) implemented odata controllers? ugly way host odatacontrollers , apicontrollers in 1 project , use different url areas.
/odata/customers(1) -> odatacontrollers /api/customers/1/profileimage -> apicontroller
for first question, please refer http://odata.github.io/webapi/#06-01-custom-url-parsing.
Comments
Post a Comment