Skip to content

Commit

Permalink
rename delete /iot/devices to post /iot/op/delete
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Feb 16, 2024
1 parent 7320146 commit 9752b31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/services/northBound/deviceProvisioningServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ function loadContextRoutes(router) {
handleUpdateDevice
);

router.delete('/iot/devices', restUtils.checkRequestAttributes('headers', mandatoryHeaders), handleRemoveDevices);
router.post('/iot/op/delete', restUtils.checkRequestAttributes('headers', mandatoryHeaders), handleRemoveDevices);

router.delete(
'/iot/devices/:deviceId',
Expand Down
4 changes: 2 additions & 2 deletions test/unit/ngsiv2/provisioning/removeProvisionedDevice-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,12 @@ describe('NGSI-v2 - Device provisioning API: Remove provisioned devices', functi

describe('When a request to remove a provision devices arrives', function () {
const options = {
url: 'http://localhost:' + iotAgentConfig.server.port + '/iot/devices',
url: 'http://localhost:' + iotAgentConfig.server.port + '/iot/op/delete',
headers: {
'fiware-service': 'smartgondor',
'fiware-servicepath': '/gardens'
},
method: 'DELETE',
method: 'POST',
json: {
devices: [
{
Expand Down

0 comments on commit 9752b31

Please sign in to comment.