Skip to content

No writer can handle the request with "Accept: application/json;odata.metadata=minimal" #213

@jochendaum

Description

@jochendaum

This header appears to drive what writer is used when connecting Odata from Excel.

From looking over the available json writers, JsonLightODataWriter should be used, but can't match odata.metadata in https://github.com/Algo-Web/POData/blob/master/src/POData/Writers/Json/JsonLightODataWriter.php#L73

Backtracking from this, it seems this is removed by this line:
https://github.com/Algo-Web/POData/blob/master/src/POData/Writers/ResponseWriter.php#L74
, I'm not sure why. Just commenting this line doesn't fix the problem either though.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions