chore(api): Update OpenAPI spec for new bulk endpoint

Adds the `import_fail_info_bulk` route and its corresponding
request/response schemas to `openapi.yaml`.
This commit is contained in:
Jin Yi 2025-07-30 09:35:24 +09:00
parent 0d43e173af
commit 8f997e4bb4

View File

@ -104,6 +104,38 @@ components:
type: boolean type: boolean
description: Whether the queue is currently processing description: Whether the queue is currently processing
ImportFailInfoBulkRequest:
type: object
properties:
cnr_ids:
type: array
items:
type: string
description: A list of CNR IDs to check.
urls:
type: array
items:
type: string
description: A list of repository URLs to check.
ImportFailInfoBulkResponse:
type: object
additionalProperties:
$ref: '#/components/schemas/ImportFailInfoItem'
description: >-
A dictionary where each key is a cnr_id or url from the request,
and the value is the corresponding error info.
ImportFailInfoItem:
oneOf:
- type: object
properties:
error:
type: string
traceback:
type: string
- type: "null"
securitySchemes: securitySchemes:
securityLevel: securityLevel:
type: apiKey type: apiKey
@ -308,32 +340,28 @@ paths:
/v2/customnode/import_fail_info_bulk: /v2/customnode/import_fail_info_bulk:
post: post:
summary: Get import failure information for multiple nodes summary: Get import failure info for multiple nodes
description: Returns information about why a list of nodes failed to import description: Retrieves recorded import failure information for a list of custom nodes.
tags: tags:
- customnode - customnode
requestBody: requestBody:
description: A list of CNR IDs or repository URLs to check.
required: true required: true
content: content:
application/json: application/json:
schema: schema:
type: object $ref: '#/components/schemas/ImportFailInfoBulkRequest'
properties:
cnr_ids:
type: array
items:
type: string
urls:
type: array
items:
type: string
responses: responses:
'200': '200':
description: Successful operation description: A dictionary containing the import failure information.
content:
application/json:
schema:
$ref: '#/components/schemas/ImportFailInfoBulkResponse'
'400': '400':
description: Bad Request or invalid input description: Bad Request. The request body is invalid.
'500': '500':
description: Internal Server Error description: Internal Server Error.
/customnode/install/git_url: /customnode/install/git_url:
post: post: