dimanche 1 octobre 2017

Replace @odata prefix in OData payload

I need to customize odata payload json content from e.g.

{
    "@odata.context": "http://localhost:49644/v1.0/$metadata#Feeds",
    "@odata.count": 6,
    "value": [
        {
            "id": 1,

To

{
    "@MyCustomdata.context": "http://localhost:49644/v1.0/$metadata#Feeds",
    "@MyCustomdata.count": 6,
    "value": [
        {
            "id": 1,

I use ODataLib http://ift.tt/1GtIBDc

tried to use custom ODataResourceSerializer, ODataResourceSetSerializer




Aucun commentaire:

Enregistrer un commentaire