GithubHelp home page GithubHelp logo

Comments (6)

kzangeli avatar kzangeli commented on August 29, 2024

I believe this is implementad already. Time ago.
If you have an example that fails, I'd love to see it :)

from context.orion-ld.

jmcanterafonseca avatar jmcanterafonseca commented on August 29, 2024

POST /ngsi-ld/v1/entities/

{
"id": "urn:ngsi-ld:Vehicle:V233",
"type": "Vehicle"
}

GET /ngsi-ld/v1/entities/urn:ngsi-ld:Vehicle:V233
(no headers, accept, etc.)
{
"id": "urn:ngsi-ld:Vehicle:V233",
"type": "Vehicle",
"@context": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/defaultContext/defaultContext.jsonld"
}

and Content-Type header incorrectly says

Content-Type →application/ld+json

so this has not been fixed yet ...

from context.orion-ld.

kzangeli avatar kzangeli commented on August 29, 2024

Think I misunderstood.
What you are saying is that if a request is done without explicitly stating that it wants application/ld+json, the context must be returned as a HTTP header, and not in the payload and the mime type must be application/json. OK, makes sense.

from context.orion-ld.

kzangeli avatar kzangeli commented on August 29, 2024

Actually, about what we talked about, this confusion with contexts ...
No context should be returned, nor in payload nor in HTTP header.
All items in the payload should use their real names - the long ones specified by the context that was used when creating the entity (no aliases).

We still need to discuss all the intrinsics about this and then change the orionld broker "completely" ...

from context.orion-ld.

kzangeli avatar kzangeli commented on August 29, 2024

Seems to be fixed now.
PR #58 proves it.
[ For now, contexts are returned for both ngsi-ld and 'normal', as this is how the broker works currently ]

from context.orion-ld.

jmcanterafonseca avatar jmcanterafonseca commented on August 29, 2024

MIME type tests are working. closing

from context.orion-ld.

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.