OData / OData/AspNetCoreOData

AspNetCoreOData does not support custom routing convention?

Open
#394 2 comments 0 reactions 1 assignee View on GitHub

@xuzhg is already working on this.

Since Nov 30, 2021.

followup question
Dominant language
C#
Stars
505
Forks
186
PR merge metrics
No merged PRs in 30d

Description

We applied global routing mechanism in our Asp.Net Core application (you can find approach here). So, we specify some routing prefix that is applied to all routings. After that AspNetCoreOData stopped to work correctly - OData requests returns just json result but it is not handled in OData way. I debugged AspNetCoreOData code together with our ones and found that AspNetCoreOData extends IApplicationModelProvider with custom ODataRoutingApplicationModelProvider and starts manipulations with routings here. And it happens earlier (before we add global routing) than customization described by link mentioned above.

Does AspNetCoreOData team have recommended way to handle such situation?

And I see described issue like global one because approach with ODataRoutingApplicationModelProvider introduces a risk that officially recommended way of doing ASP.Net Core application customizations will be ignored. What do you think?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.