We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

REST API - Past values of an entity

What I have

Docker Containers:

Orion CB
MongoDB

What I do

I use the REST API (NGSIv2) so I:

  1. Create an entity (using POST)
  2. Update the values from this entity (using PUT)
  3. Get the value from the entity (using other app: GET)

My question

Is there any way (inherent to ORION) to have the full history of values of this entity? Something like a queue of messages, or so, being them the values of this entity.

If not, which mechanism should I use (inherent to ORION again) to be able to build it in my second app?

I guess I expect to have a subscription mode or whatever so I get a notification of a new value (public/subs model?) still using the REST API in my second app, not needing it to have hard-coded when a new value of the entity will be available at ORION, since this may be unknown even for me.

REST API - Past values of an entity

What I have

Docker Containers:

Orion CB
MongoDB

What I do

I use the REST API (NGSIv2) so I:

  1. Create an entity (using POST)
  2. Update the values from this entity (using PUT)
  3. Get the value from the entity (using other app: GET)

My question

Is there any way (inherent to ORION) to have the full history of values of this entity? Something like a queue of messages, or so, being them the values of this entity.

If not, which mechanism should I use (inherent to ORION again) to be able to build it in my second app?

I guess I expect to have a subscription mode or whatever so I get a notification of a new value (public/subs model?) still using the REST API in my second app, not needing it to have hard-coded when a new value of the entity will be available at ORION, since this may be unknown even for me.