Network API loccontrol should also handle a JSON body request
Open
- Dominant language
- Go
- Stars
- 337
- Forks
- 58
- PR merge metrics
- No merged PRs in 30d
Description
As `rules/add` does. In other words, the following should work:
```Shell
cat <
Contributor guide
Research direction
Start at the /api/sys/loccontrol handler and compare its request parsing with /api/loc/rules/add, which already accepts a JSON body. Reproduce the issue with the provided curl commands and verify that the direct JSON request produces the same result as the form-encoded control request, while the existing rules/add and events/ingest behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100