Graylog2 / Graylog2/graylog2-server
Confusing non-symmetry of data structure for System/inputs GET and POST
- Dominant language
- Java
- Stars
- 8.1k
- Forks
- 1.1k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 217
Description
I want to create an HTTP input via curl to automate the setup of the graylog server.
System/inputs GET returns a structure with a property `attributes` for an input.
System/inputs POST however expects a property `configuration`.
I would expect to be able to use the structure returned by GET as a sample to create an input mechanically. I had to rename `attributes` to `configuration`. The input was created ok.
This is confusing. A REST resource should look the same for POST and GET.
## Expected Behavior
## Current Behavior
## Possible Solution
## Steps to Reproduce (for bugs)
1.
2.
3.
4.
## Context
## Your Environment
* Graylog Version: 2.2.2
* Elasticsearch Version:
* MongoDB Version:
* Operating System:
* Browser version:
Contributor guide
Assessment
This issue has not been assessed yet.