Skip to content

Commit 238d7e3

Browse files
committed
Map snapshots tag to Sandboxes section in generate script
1 parent d4fa03b commit 238d7e3

2 files changed

Lines changed: 33 additions & 32 deletions

File tree

openapi-public.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,38 @@ paths:
501501
operationId: postSandboxSnapshots
502502
servers:
503503
- *id001
504+
/snapshots:
505+
get:
506+
description: List all snapshots for the team
507+
tags:
508+
- Sandboxes
509+
security:
510+
- ApiKeyAuth: []
511+
parameters:
512+
- name: sandboxID
513+
in: query
514+
required: false
515+
schema:
516+
type: string
517+
description: Filter snapshots by source sandbox ID
518+
- $ref: '#/components/parameters/paginationLimit'
519+
- $ref: '#/components/parameters/paginationNextToken'
520+
responses:
521+
'200':
522+
description: Successfully returned snapshots
523+
content:
524+
application/json:
525+
schema:
526+
type: array
527+
items:
528+
$ref: '#/components/schemas/SnapshotInfo'
529+
'401':
530+
$ref: '#/components/responses/401'
531+
'500':
532+
$ref: '#/components/responses/500'
533+
operationId: listSnapshots
534+
servers:
535+
- *id001
504536
/v3/templates:
505537
post:
506538
description: Create a new template
@@ -1964,38 +1996,6 @@ paths:
19641996
operationId: uploadFile
19651997
servers:
19661998
- *id005
1967-
/snapshots:
1968-
get:
1969-
description: List all snapshots for the team
1970-
tags:
1971-
- snapshots
1972-
security:
1973-
- ApiKeyAuth: []
1974-
parameters:
1975-
- name: sandboxID
1976-
in: query
1977-
required: false
1978-
schema:
1979-
type: string
1980-
description: Filter snapshots by source sandbox ID
1981-
- $ref: '#/components/parameters/paginationLimit'
1982-
- $ref: '#/components/parameters/paginationNextToken'
1983-
responses:
1984-
'200':
1985-
description: Successfully returned snapshots
1986-
content:
1987-
application/json:
1988-
schema:
1989-
type: array
1990-
items:
1991-
$ref: '#/components/schemas/SnapshotInfo'
1992-
'401':
1993-
$ref: '#/components/responses/401'
1994-
'500':
1995-
$ref: '#/components/responses/500'
1996-
operationId: listSnapshots
1997-
servers:
1998-
- *id001
19991999
components:
20002000
securitySchemes:
20012001
AccessTokenAuth:

scripts/generate_openapi_reference.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,6 +1369,7 @@ def rename_and_reorder_tags(spec: dict[str, Any]) -> None:
13691369
"""Rename tags and reorder them for the documentation sidebar."""
13701370
TAG_RENAME = {
13711371
"sandboxes": "Sandboxes",
1372+
"snapshots": "Sandboxes",
13721373
"templates": "Templates",
13731374
"filesystem.Filesystem": "Filesystem",
13741375
"process.Process": "Process",

0 commit comments

Comments
 (0)