Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

REST NGSI10 support #39

Merged
merged 14 commits into from
Feb 11, 2016
Merged

REST NGSI10 support #39

merged 14 commits into from
Feb 11, 2016

Conversation

marcc-orange
Copy link
Contributor

Add support for NGSI 10 convenient REST operations to the Broker.

The goal is to support a REST interface to access to Fiware data though the broker.

This adds the following endpoints:

  • POST/PUT/GET/DELETE /v1/contextEntities/{entityID}
  • POST/PUT/GET/DELETE /v1/contextEntities/{entityID}/attributes/{attributeName}
  • PUT/GET/DELETE /v1/contextEntities/{entityID}/attributes/{attributeName}/{valueID}
  • GET /v1/contextEntityType/{typeName}
  • GET /v1/contextEntityType/{typeName}/attributes/{attributeName}
  • POST /v1/contextSubscriptions
  • GET/DELETE /v1/contextSubscriptions/{subscriptionID}

All these NGSI-10 REST "convenient" operations are supported on the Broker and mapped back internally to the standard operations (/updateContext, /queryContext, etc...).

Original intention was to support JSON-LD on a RESTfull NGSIv1 interface.
This goal has since been dropped and will come with with NGSIv2 support.

use mixin only for entityId @JsonWrapped
to allow for reuse for AppendContextElementResponse class
Both NGSI and REST are acronym and we don't want names like
NGSIRESTBaseController, so just use camelcase every time for consistency.
@marcc-orange marcc-orange added this to the 0.1.5 milestone Feb 3, 2016
@marcc-orange marcc-orange self-assigned this Feb 3, 2016
some mandatory checks where missing
trying to stay compatible with java 7 for library reuse.
broker will forward NGSI-10 REST convenient operations
to classic operations internaly.
@PascaleBorscia
Copy link
Member

LGTM 👍

PascaleBorscia added a commit that referenced this pull request Feb 11, 2016
@PascaleBorscia PascaleBorscia merged commit 88c07f5 into master Feb 11, 2016
@PascaleBorscia PascaleBorscia deleted the rest-ngsi10 branch February 11, 2016 10:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants