Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 164 additions & 0 deletions swagger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
openapi: 3.0.0
info:
title: Artifacts API
description: API documentation for managing artifacts and buckets.
version: 1.0.0
paths:
/artifacts/artifacts/default/{project_id}/{bucket_name}:
get:
summary: List Artifacts
parameters:
- name: project_id
in: path
required: true
schema:
type: string
- name: bucket_name
in: path
required: true
schema:
type: string
- name: configuration_title
in: query
required: false
schema:
type: string
responses:
'200':
description: Successful response
post:
summary: Create Artifact
parameters:
- name: project_id
in: path
required: true
schema:
type: string
- name: bucket_name
in: path
required: true
schema:
type: string
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
responses:
'201':
description: Artifact created successfully
/artifacts/artifact/default/{project_id}/{bucket_name}/{file_name}:
get:
summary: Get Artifact
parameters:
- name: project_id
in: path
required: true
schema:
type: string
- name: bucket_name
in: path
required: true
schema:
type: string
- name: file_name
in: path
required: true
schema:
type: string
responses:
'200':
description: Successful response
/artifacts/buckets/default/{project_id}:
get:
summary: List Buckets
parameters:
- name: project_id
in: path
required: true
schema:
type: string
- name: configuration_title
in: query
required: false
schema:
type: string
responses:
'200':
description: Successful response
post:
summary: Create Bucket
parameters:
- name: project_id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
name:
type: string
expiration_measure:
type: string
expiration_value:
type: integer
responses:
'201':
description: Bucket created successfully
/artifacts/artifacts/default/{project_id}/{bucket_name}:
delete:
summary: Delete Artifacts
parameters:
- name: project_id
in: path
required: true
schema:
type: string
- name: bucket_name
in: path
required: true
schema:
type: string
- name: configuration_title
in: query
required: false
schema:
type: string
responses:
'204':
description: Artifacts deleted successfully
Comment on lines +116 to +137

Copilot AI Aug 3, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This path is identical to line 7, creating a duplicate endpoint definition. The DELETE operation should be merged with the existing GET and POST operations under the same path.

Suggested change
/artifacts/artifacts/default/{project_id}/{bucket_name}:
delete:
summary: Delete Artifacts
parameters:
- name: project_id
in: path
required: true
schema:
type: string
- name: bucket_name
in: path
required: true
schema:
type: string
- name: configuration_title
in: query
required: false
schema:
type: string
responses:
'204':
description: Artifacts deleted successfully
# (Remove lines 116–137 entirely)

Copilot uses AI. Check for mistakes.
/artifacts/artifact/default/{project_id}/{bucket_name}:

Copilot AI Aug 3, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The DELETE artifact endpoint path is missing the {file_name} path parameter that exists in the GET artifact endpoint (line 54). This creates an inconsistent API design where deletion requires filename as a query parameter instead of a path parameter.

Suggested change
/artifacts/artifact/default/{project_id}/{bucket_name}:
/artifacts/artifact/default/{project_id}/{bucket_name}/{file_name}:

Copilot uses AI. Check for mistakes.
delete:
summary: Delete Artifact
parameters:
- name: project_id
in: path
required: true
schema:
type: string
- name: bucket_name
in: path
required: true
schema:
type: string
- name: configuration_title
in: query
required: false
schema:
type: string
- name: filename
in: query
required: true
schema:
type: string
responses:
'204':
description: Artifact deleted successfully