mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 10:20:29 -06:00
CloudMigrations: document and re-generate api for syncing (#94063)
* CloudMigrations: document frontend open-api generator steps * CloudMigrations: re-run api generation
This commit is contained in:
parent
e399fe6d09
commit
821bb235b3
@ -313,6 +313,11 @@ type GetSnapshotListParams struct {
|
||||
// Session UID of a session
|
||||
// in: path
|
||||
UID string `json:"uid"`
|
||||
|
||||
// Sort with value latest to return results sorted in descending order.
|
||||
// in:query
|
||||
// required:false
|
||||
Sort string `json:"sort"`
|
||||
}
|
||||
|
||||
// swagger:response snapshotListResponse
|
||||
|
@ -2600,6 +2600,12 @@
|
||||
"name": "uid",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Sort with value latest to return results sorted in descending order.",
|
||||
"name": "sort",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
6
public/app/features/migrate-to-cloud/api/README.md
Normal file
6
public/app/features/migrate-to-cloud/api/README.md
Normal file
@ -0,0 +1,6 @@
|
||||
## Migrate to Cloud API
|
||||
|
||||
The [`endpoints.gen.ts`](./endpoints.gen.ts) file is machine generated. In order to update it, follow these steps:
|
||||
|
||||
- Run: `make swagger-clean && make openapi3-gen`
|
||||
- Run: `yarn generate-apis`
|
@ -112,10 +112,10 @@ export type GetShapshotListApiArg = {
|
||||
page?: number;
|
||||
/** Max limit for results returned. */
|
||||
limit?: number;
|
||||
/** Sort with value latest to return results sorted in descending order */
|
||||
sort?: string;
|
||||
/** Session UID of a session */
|
||||
uid: string;
|
||||
/** Sort with value latest to return results sorted in descending order. */
|
||||
sort?: string;
|
||||
};
|
||||
export type GetCloudMigrationTokenApiResponse = /** status 200 (empty) */ GetAccessTokenResponseDto;
|
||||
export type GetCloudMigrationTokenApiArg = void;
|
||||
@ -157,6 +157,7 @@ export type CreateSnapshotResponseDto = {
|
||||
};
|
||||
export type MigrateDataResponseItemDto = {
|
||||
message?: string;
|
||||
name?: string;
|
||||
refId: string;
|
||||
status: 'OK' | 'WARNING' | 'ERROR' | 'PENDING' | 'UNKNOWN';
|
||||
type: 'DASHBOARD' | 'DATASOURCE' | 'FOLDER' | 'LIBRARY_ELEMENT';
|
||||
|
@ -15802,6 +15802,14 @@
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "Sort with value latest to return results sorted in descending order.",
|
||||
"in": "query",
|
||||
"name": "sort",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
Loading…
Reference in New Issue
Block a user