mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 02:12:24 +08:00
API: Make Swagger specification more consistent (#50576)
* Fix swagger generation targer using mac Validate using the swagger binarry instead of the docker container * API: Make swagger specification more consistent Fix operation parameter ordering
This commit is contained in:

committed by
GitHub

parent
f87927c82e
commit
7418a80264
@ -65,7 +65,7 @@ import (
|
||||
// 401: unauthorisedError
|
||||
|
||||
// swagger:parameters createSnapshot
|
||||
type CreateSnapshotParam struct {
|
||||
type CreateSnapshotParams struct {
|
||||
// in:body
|
||||
// required:true
|
||||
Body models.CreateDashboardSnapshotCommand `json:"body"`
|
||||
@ -82,14 +82,20 @@ type GetSnapshotsParams struct {
|
||||
Limit int64 `json:"limit"`
|
||||
}
|
||||
|
||||
// swagger:parameters getSnapshotByKey deleteSnapshotByKey
|
||||
type SnapshotByKeyParam struct {
|
||||
// swagger:parameters getSnapshotByKey
|
||||
type SnapshotByKeyParams struct {
|
||||
// in:path
|
||||
Key string `json:"key"`
|
||||
}
|
||||
|
||||
// swagger:parameters deleteSnapshotByKey
|
||||
type DeleteSnapshotByKeyParams struct {
|
||||
// in:path
|
||||
Key string `json:"key"`
|
||||
}
|
||||
|
||||
// swagger:parameters deleteSnapshotByDeleteKey
|
||||
type DeleteSnapshotByDeleteKeyParam struct {
|
||||
type DeleteSnapshotByDeleteKeyParams struct {
|
||||
// in:path
|
||||
DeleteKey string `json:"deleteKey"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user