Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to customize url in $metadata #581

Open
RrOoSsSsOo opened this issue Apr 19, 2023 · 2 comments
Open

How to customize url in $metadata #581

RrOoSsSsOo opened this issue Apr 19, 2023 · 2 comments

Comments

@RrOoSsSsOo
Copy link

Dear all,

"name": "CustomUsers" is possible by attribute into the Model

#[
    LodataIdentifier('CustomUsers')
]

But how to change/customize the "url" per Model?

{
  "@context": "http://127.0.0.1/odata/$metadata",
  "value": [
    {
      "name": "Users",
      "kind": "EntitySet",
      "url": "Users"
    },
    {
      "name": "CustomUsers",
      "kind": "EntitySet",
      "url": "Custom/Users/URL"
    }
  ]
}

I want to have multiple url (prefix), i.e. for Prod and Test.

@27pchrisl
Copy link
Contributor

Hi @RrOoSsSsOo - does the lodata.php config option prefix give you what you need?

@RrOoSsSsOo
Copy link
Author

RrOoSsSsOo commented Apr 19, 2023

No, actually the aim would be to have more URLs (different URLs).
prefix changes all URLs

Desidered result:
http://127.0.0.1/odata/Users
http://127.0.0.1/odata/custom/Users

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

No branches or pull requests

2 participants