Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Code expects metadata to be present at .../$metadata/ instead of .../$metadata (no slash)  #22

Open

Description

@nicenemo

According to the OData specification $metadata urls should work without trailing '/'. They may also work with trailing slash.

4.1 Addressing the Model for a Service

OData services expose their entity
model according to OData-CSDL at the metadata URL, formed by
appending $metadata to the service root URL

Example 5: Metadata document URL

http://host/service/$metadata

OData services MAY expose their entity model
as a service, according to [OData-CSDL], by appending a trailing slash (/) to the metadata document URL.

Example 6: Metadata service root URL

http://host/service/$metadata/

Olingo Odata services for example do not have the trailing '/' in their $metadata url.

I forked your repo and fixed that. I did not fix the unit test yet. Do you want a pull request?

Fixes:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions