Skip to content

Commit

Permalink
internal: update api specs
Browse files Browse the repository at this point in the history
  • Loading branch information
schutzbot authored and croissanne committed Sep 16, 2024
1 parent 1c9138c commit 76b9c78
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 3 deletions.
95 changes: 92 additions & 3 deletions internal/clients/content_sources/content-sources.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -976,10 +976,18 @@
"description": "Count of each content type",
"type": "object"
},
"repository_name": {
"description": "Name of repository the snapshot belongs to",
"type": "string"
},
"repository_path": {
"description": "Path to repository snapshot contents",
"type": "string"
},
"repository_uuid": {
"description": "UUID of the repository the snapshot belongs to",
"type": "string"
},
"url": {
"description": "URL to the snapshot's content",
"type": "string"
Expand Down Expand Up @@ -2344,8 +2352,8 @@
}
},
"required": [
"sha256",
"file"
"file",
"sha256"
],
"type": "object"
}
Expand Down Expand Up @@ -3253,7 +3261,7 @@
"/repositories/{uuid}/snapshots/": {
"get": {
"description": "List snapshots of a repository.",
"operationId": "listSnapshots",
"operationId": "listSnapshotsForRepo",
"parameters": [
{
"description": "Repository ID.",
Expand Down Expand Up @@ -5369,6 +5377,87 @@
"rpms"
]
}
},
"/templates/{uuid}/snapshots/": {
"get": {
"description": "List snapshots for a template.",
"operationId": "listSnapshotsForTemplate",
"parameters": [
{
"description": "Template ID.",
"in": "path",
"name": "uuid",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Search through snapshots by repository name.",
"in": "query",
"name": "repository_search",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/api.SnapshotCollectionResponse"
}
}
},
"description": "OK"
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Bad Request"
},
"401": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Unauthorized"
},
"404": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Not Found"
},
"500": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Internal Server Error"
}
},
"summary": "List snapshots for a template",
"tags": [
"snapshots"
]
}
}
},
"servers": [
Expand Down
12 changes: 12 additions & 0 deletions internal/clients/content_sources/openapi.v1.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 76b9c78

Please sign in to comment.