Skip to content

Commit

Permalink
fix(device): correct device HTTP API (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebtiz13 authored Jul 12, 2024
1 parent 878ca58 commit d9fe9e1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/2/controllers/assets/delete/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Deletes an asset.
### HTTP

```http
URL: http://kuzzle:7512/_/device-manager/:engineId/assets/:assetId
URL: http://kuzzle:7512/_/device-manager/:engineId/assets/:_id
Method: DELETE
```

Expand Down
2 changes: 1 addition & 1 deletion doc/2/controllers/devices/delete/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Deletes a device.
### HTTP

```http
URL: http://kuzzle:7512/_/device-manager/:engineId/devices/:deviceId
URL: http://kuzzle:7512/_/device-manager/:engineId/devices/:_id
Method: DELETE
```

Expand Down
4 changes: 2 additions & 2 deletions lib/modules/device/DevicesController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class DevicesController {
update: {
handler: this.update.bind(this),
http: [
{ path: "device-manager/:engineId/device/:deviceId", verb: "post" },
{ path: "device-manager/:engineId/devices/:_id", verb: "put" },
],
},
search: {
Expand All @@ -66,7 +66,7 @@ export class DevicesController {
handler: this.delete.bind(this),
http: [
{
path: "device-manager/:engineId/device/:deviceId",
path: "device-manager/:engineId/devices/:_id",
verb: "delete",
},
],
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"test": "npm run test:functional && npm run test:types",
"test:functional": "jest --runInBand",
"test:types": "tsc --noEmit",
"lint": "eslint ./lib ./tests --ext .ts --config .eslintrc.json",
"lint:fix": "eslint ./lib ./tests --ext .ts --config .eslintrc.json --fix",
"lint": "eslint ./lib ./tests --ext .ts",
"lint:fix": "eslint ./lib ./tests --ext .ts --fix",
"prettier": "prettier lib/ tests/ --write",
"build": "tsc --build tsconfig.json",
"prepack": "npm run build"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"include": [
"lib/**/*.ts",
"scripts/**/*.mjs",
"tests/application/**/*.ts",
"tests/**/*.ts",
".eslintrc.cjs",
"index.ts",
"releaseTypes.mjs"
Expand Down

0 comments on commit d9fe9e1

Please sign in to comment.