Code Monkey home page Code Monkey logo

Comments (7)

diegomvh avatar diegomvh commented on May 24, 2024

Hi @NiBurhe
What is in the answer inside d?
it is strange, the standard says that the answer for a collection is of the form {..., value: [...]}
How is the backend implemented? What version of OData do you work with? the library is tightly tied to version 4 it is in this version that I use it for my projects.
regards

from angular-odata.

NiBurhe avatar NiBurhe commented on May 24, 2024

Hi @diegomvh ,

I checked with my colleagues and it is version 2.0

https://www.odata.org/documentation/odata-version-2-0/json-format/

In version 2.0 it is d

In the response header is an entry "dataserviceversion" which says 2.0

Is there a possibility to build in a switch to enable version 2.0 too?

Thanks & Regards

from angular-odata.

diegomvh avatar diegomvh commented on May 24, 2024

After looking the documentation for OData version 2. I think it is possible to implement a processing mechanism for the reported odata versions using the response headers.

I am currently working on refactoring the response process and subsequent data parsing. The idea is to analyze the headers in the response and improve the pre-processing of the data deserailization.

I try to work with the idea of ​​supporting the other versions of odata, at least as far as the shape of the answer is concerned. Likewise, I do not know whether to consider version 2 or 3 of odata as a priority because, as it is not part of my projects, it is unknown to me in many aspects.

Regards

from angular-odata.

diegomvh avatar diegomvh commented on May 24, 2024

Hi, @NiBurhe

I found an api that works with version 2.0 of odata.
https://baas-demo.demo-jp.personium.io/1/index.html

I try to work on it to adapt the library.
It is difficult to find public odata APIs.

Regards

from angular-odata.

NiBurhe avatar NiBurhe commented on May 24, 2024

Hi @diegomvh ,

sounds good. Many Thanks

from angular-odata.

diegomvh avatar diegomvh commented on May 24, 2024

Fighting with versions

https://github.com/diegomvh/AngularODataEntity/blob/0c373f2637415ccd339ad7e2ede80479e8b27c97/src/app/app.module.ts#L44

from angular-odata.

diegomvh avatar diegomvh commented on May 24, 2024

The new release incorporates basic support for OData versions 3 and 2.
Thanks for giving a try to the library.
Regards

from angular-odata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.