Sylvain BRENNE created OLINGO-1562:
--------------------------------------

             Summary: Compatibility with standard consumer like EXCEL
                 Key: OLINGO-1562
                 URL: https://issues.apache.org/jira/browse/OLINGO-1562
             Project: Olingo
          Issue Type: Question
    Affects Versions: (Java) V4 4.9.0
            Reporter: Sylvain BRENNE


Hi.

Into the ServiceDocumentJsonSerializer.java wich is called by the 
ODataJsonSerializer, there is no way to provide options to be compatible with 
Excel... so no way to force to write the "kind" property of an EntitySet into 
the response to a query on "*****.svc/".

How it is possible to force the generation of the "kind" property without 
duplicate all the code of the ODataJsonSerializer and the 
ServiceDocumentJsonSerialier, or opening the result of the Json builted to 
append the kind property on EntitySet ?"

 

Expected by Excel :
{
    "@odata.context": 
"https://services.odata.org/V4/Northwind/Northwind.svc/$metadata";,
    "value": [
        

{             "name": "Categories",             "kind": "EntitySet",            
 "url": "Categories"         }

,
        { ....
 
Provided by Olingo :
{
    "@odata.context": 
"https://services.odata.org/V4/Northwind/Northwind.svc/$metadata";,
    "value": [
        

{             "name": "Categories",             "url": "Categories"         }

,
        {....
 
Thanks



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to