influxdata / influxdata/kapacitor

[Feature] support HEAD method for endpoints that already support GET method

Open
#2,839 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

For checking access to endpoints f.ex it would be great if the kapacitor endpoints that support the GET method, also supported the HEAD verb. At least for the kapacitor/v1/tasks, it returns 404 when I query it using the HEAD verb, but returns all tasks if I do a GET call.

Contributor guide

Open the contributing guide

Research direction

Use the GET handling for kapacitor/v1/tasks as the reference and trace how HTTP methods are routed for endpoints that support GET. Verify that HEAD requests succeed without returning a response body while existing GET behavior remains unchanged, including the reported tasks endpoint. Add or run the relevant endpoint tests if they are present.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.