API: Allow the Silences API to use their own 400 response
There's no change to the logic here - it just stroke me as odd that we were reusing the response from alerting groups in the silences call when it's pretty simple to add a new one in the API description.
This is more accurate as well, as this will be used to power the documentation.
Signed-off-by:
gotjosh <josue.abreu@gmail.com>
Showing
- api/v2/api.go 1 addition, 1 deletionapi/v2/api.go
- api/v2/client/silence/get_silences_responses.go 72 additions, 0 deletionsapi/v2/client/silence/get_silences_responses.go
- api/v2/openapi.yaml 2 additions, 0 deletionsapi/v2/openapi.yaml
- api/v2/restapi/embedded_spec.go 9 additions, 0 deletionsapi/v2/restapi/embedded_spec.go
- api/v2/restapi/operations/silence/get_silences_responses.go 43 additions, 0 deletionsapi/v2/restapi/operations/silence/get_silences_responses.go
Please register or sign in to comment