Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NGSI API v2 #263

Closed
etatus opened this issue Jan 26, 2017 · 5 comments
Closed

NGSI API v2 #263

etatus opened this issue Jan 26, 2017 · 5 comments
Assignees
Milestone

Comments

@etatus
Copy link

etatus commented Jan 26, 2017

Do you plan to update the NGSI.js API to Orion API v2?. Version v1 is very limited. Specifically, the updateContext function treat all the attributes to update as strings.

@aarranz aarranz self-assigned this Feb 1, 2017
@aarranz
Copy link
Member

aarranz commented Feb 1, 2017

Hi @etatus, we are working on updating the NGSI bindings to API v2, but is not ready yet, sorry. Anyway, the updateContext method should be able use structured values (v1 of the NGSI API allows it). I'm checking if there is a problem in the implementation and I will update you about this regard.

@aarranz
Copy link
Member

aarranz commented Feb 8, 2017

Hi @etatus, I have checked it, and the NGSI API is working for structured values, the only thing to take into account is that the NGSI v1 converts leaf nodes into strings. You can follow the progress in adding NGSI v2 support in the conwetlab/ngsijs#9 ticket

@etatus
Copy link
Author

etatus commented Feb 8, 2017

Thank you for your answer. I'm developing a widget to allow editing attributes, and API v1 not only treats all attributes as strings but also requires "type": "StructuredValue" for complex (structured) attributes. Therefore, attributes from a GeoJSON object ("type":"geo:json") cannot be updated.

Do you have a roadmap to know when the "Update entity attributes" / "Update attribute" functions will be available?

@aarranz
Copy link
Member

aarranz commented Feb 9, 2017

We are working on adding NGSIv2 support to the ngsijs library. I think that is very feasible to have a first/initial implementation (supporting all the elements listed in the conwetlab/ngsijs#9 ticket) ready by the next week. Then we have to release a new version of WireCloud using the new version of the library.

@etatus
Copy link
Author

etatus commented Feb 10, 2017

Great news! Thank you very much.

@aarranz aarranz added this to the Feb 2017 milestone Feb 16, 2017
@aarranz aarranz closed this as completed Mar 1, 2017
aarranz added a commit that referenced this issue Mar 1, 2017
Mognom pushed a commit to Mognom/wirecloud that referenced this issue Jul 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants