Skip to content

One approach to solve the issue that I could think of - #3

Open
sihanook wants to merge 1 commit into
mainfrom
experiments
Open

sihanook wants to merge 1 commit into
mainfrom
experiments

Conversation

@sihanook

Copy link
Copy Markdown
Owner

This solution here gets me closer to what I need but with this OData seems to think that this is no longer an OData response, so it gets rid of the "@odata.context" and other odata related response metadata. E.g., "@odata.count" is no longer included.

With this change, the following route:
/api/one?$filter=id eq 2&$select=id,name&$count=true

Gets me the following. Note how this no longer looks like an "odata" response:

{
  "content": [
    {
      "Id": 2,
      "Name": "B"
    }
  ],
  "metadata": [
    "One",
    "Two"
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant