influxdata / influxdata/iot-api-js

The structure comment says `pages/api/devices/[[...deviceParams]].js` handles `GET/DELETE /api/devices`, but the handler only supports `GET` (and `POST` for `/:deviceId/measurements`)—there’s no `DELETE` implementation. Update the description so it reflects the actual supported methods/routes.

Open Beginner friendly
#30 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12
Forks
5
Avg merge
2d 16h
Merged PRs (30d)
2

Description

The structure comment says `pages/api/devices/[[...deviceParams]].js` handles `GET/DELETE /api/devices`, but the handler only supports `GET` (and `POST` for `/:deviceId/measurements`)—there’s no `DELETE` implementation. Update the description so it reflects the actual supported methods/routes.

_Originally posted by @Copilot in https://github.com/influxdata/iot-api-js/pull/29#discussion_r2789216309_

Contributor guide

No contributing guide indexed for this repository

Research direction

Open pages/api/devices/[[...deviceParams]].js and compare its structure comment with the implemented routes. Update the description to reflect GET /api/devices and POST for /api/devices/:deviceId/measurements, with no DELETE route; the comment should match the handler.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nextjs
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.