diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index 139597f..0883a65 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1,2 +1 @@ - - +- Add: support `POST /iot/op/delete` operation at iotAgent API to delete multiple devices at once (iota-node-lib#1578) diff --git a/Changelog b/Changelog index f68c843..1e345bc 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,8 @@ +3.1.0 (January 8th, 2024) + +- Add: transport and endpoint to Group model (iotagent-node-lib#1542) +- Upgrade iotagent-node-lib dependency from 4.0.0 to 4.1.0 + 3.0.0 (November 24th, 2023) - Add: payloadType to device and groups model (iotagent-json#778) diff --git a/README.md b/README.md index 4f7960b..4e554b8 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ In order to run the docker image, first you must have a MongoDB instance running following command: ```console -docker run --name mongodb -d mongo + docker run -d -p 27017:27017 --hostname mongo --name mongo mongo:6.0.12 ``` ### Build your own Docker image diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml new file mode 100644 index 0000000..afad40c --- /dev/null +++ b/docker-compose-dev.yml @@ -0,0 +1,7 @@ +version: "3" + +services: + mongo: + image: mongo:6.0.12 + ports: + - "27017:27017" diff --git a/lib/model/Configuration.js b/lib/model/Configuration.js index f889f31..a0272cb 100644 --- a/lib/model/Configuration.js +++ b/lib/model/Configuration.js @@ -63,7 +63,9 @@ const Configuration = new Schema({ timestamp: Boolean, explicitAttrs: ExplicitAttrsType, entityNameExp: String, - payloadType: String + payloadType: String, + endpoint: String, + transport: String }); function load(db) { diff --git a/lib/services/configurations.js b/lib/services/configurations.js index 3386de8..a4003cc 100644 --- a/lib/services/configurations.js +++ b/lib/services/configurations.js @@ -38,7 +38,9 @@ const retrievingAPITranslation = { description: 'description', explicitAttrs: 'explicitAttrs', entityNameExp: 'entityNameExp', - payloadType: 'payloadType' + payloadType: 'payloadType', + transport: 'transport', + endpoint: 'endpoint' }; function isInvalidParameter(param) { @@ -83,7 +85,9 @@ function translateToApi(logger, configurations) { 'timestamp', 'explicitAttrs', 'entityNameExp', - 'payloadType' + 'payloadType', + 'endpoint', + 'transport' ]; logger.debug('configurations %j', configurations); diff --git a/lib/services/iotaRedirector.js b/lib/services/iotaRedirector.js index c0684eb..b6a8683 100644 --- a/lib/services/iotaRedirector.js +++ b/lib/services/iotaRedirector.js @@ -431,6 +431,7 @@ function loadContextRoutes(router) { router.get('/iot/devices', middlewareList); router.get('/iot/devices/:id', middlewareList); router.put('/iot/devices/:id', middlewareList); + router.post('/iot/op/delete', middlewareList); router.delete('/iot/devices/:id', middlewareList); } diff --git a/package.json b/package.json index 5ee935d..c421c9f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "iotagent-manager", "description": "IoT Agent Manager proxy", - "version": "3.0.0-next", + "version": "3.1.0-next", "homepage": "https://github.com/telefonicaid/iotagent-manager", "author": { "name": "Daniel Moran",