This is a migrated thread and some comments may be shown as answers.

Does DataSource Support OData v4.0 Response specs? Or just OData Verbose?

1 Answer 107 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
S
Top achievements
Rank 1
S asked on 13 Jun 2013, 11:12 PM
I am building OData service and its response format is new OData v4.0 format.
http://docs.oasis-open.org/odata/odata-json-format/v4.0/csprd01/odata-json-format-v4.0-csprd01.html

However, Kendo's data source seems only support previous OData version.

For example, take a look at these two formats:
{
    "d" : {
        "results": [
        {
            "__metadata": {
                "uri": "http://demos/Orders(10248)",
                "type": "SampleModel.Order"
            },
            "ProductId": 10248,
            "Name": "Vgnon"
        }
        ],
        "__count": "1"
    }
}

------------------------------------------------------
OData v4.0
{

    "odata.metadata":"http://localhost:43111/api/$metadata#Products",
    "odata.count":"1",
    "value":
    [
        {
            "ProductId":2,
            "CreatedDate":"2013-06-10T23:53:26",
            "CreatedBy":0,"Name":"Camera"
        }
    ]
}

Can I tell the data source to expect new response format?

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 17 Jun 2013, 10:42 AM
Hello Suhendra,

The new of OData format is still not supported as a predefined transport type of the dataSource. I strongly suggest you to share this as an idea on the Kendo User Voice page, so we can consider its importance and implementation.


Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
S
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or