NGSI v2 SDK for Java
All URIs are relative to http://localhost:1026/v2
| Class | Method | HTTP request |
|---|---|---|
| ApiEntryPointApi | retrieveApiResources | GET / |
| AttributeValueApi | getAttributeValue | GET /entities/{entityId}/attrs/{attrName}/value |
| AttributeValueApi | updateAttributeValue | PUT /entities/{entityId}/attrs/{attrName}/value |
| AttributesApi | getAttributeData | GET /entities/{entityId}/attrs/{attrName} |
| AttributesApi | removeASingleAttribute | DELETE /entities/{entityId}/attrs/{attrName} |
| AttributesApi | updateAttributeData | PUT /entities/{entityId}/attrs/{attrName} |
| BatchOperationsApi | notify | POST /op/notify |
| BatchOperationsApi | query | POST /op/query |
| BatchOperationsApi | update | POST /op/update |
| EntitiesApi | createEntity | POST /entities |
| EntitiesApi | listEntities | GET /entities |
| EntitiesApi | removeEntity | DELETE /entities/{entityId} |
| EntitiesApi | replaceAllEntityAttributes | PUT /entities/{entityId}/attrs |
| EntitiesApi | retrieveEntity | GET /entities/{entityId} |
| EntitiesApi | retrieveEntityAttributes | GET /entities/{entityId}/attrs |
| EntitiesApi | updateExistingEntityAttributes | PATCH /entities/{entityId}/attrs |
| EntitiesApi | updateOrAppendEntityAttributes | POST /entities/{entityId}/attrs |
| RegistrationsApi | createRegistration | POST /registrations |
| RegistrationsApi | deleteRegistration | DELETE /registrations/{registrationId} |
| RegistrationsApi | listRegistrations | GET /registrations |
| RegistrationsApi | retrieveRegistration | GET /registrations/{registrationId} |
| RegistrationsApi | updateRegistration | PATCH /registrations/{registrationId} |
| SubscriptionsApi | createSubscription | POST /subscriptions |
| SubscriptionsApi | deleteSubscription | DELETE /subscriptions/{subscriptionId} |
| SubscriptionsApi | listSubscriptions | GET /subscriptions |
| SubscriptionsApi | retrieveSubscription | GET /subscriptions/{subscriptionId} |
| SubscriptionsApi | updateSubscription | PATCH /subscriptions/{subscriptionId} |
| TypesApi | listEntityTypes | GET /types |
| TypesApi | retrieveEntityType | GET /types/{entityType} |
- PATCH /registrations/{registrationId} returns 405 Method Not Allowed.
According to the NGSIv2 Implementation Notes:
PATCH /v2/registration/<id>is not implemented. Thus, registrations cannot be updated directly. I.e., updates must be done deleting and re-creating the registration. Please see this issue about this. - 204 No Content responses cause
java.io.IOException: unexpected content length header with 204 response
This bug has been fixed in jdk-11.0.7