Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api/source: Add endpoint to upload source inventory #123

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
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
54 changes: 51 additions & 3 deletions api/v1alpha1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,54 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
post:
tags:
- source
description: create a source from inventory file
operationId: createSource
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SourceCreate'
required: true
responses:
"201":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Source'
"400":
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
"403":
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
"404":
description: NotFound
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
"500":
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
tags:
- source
Expand Down Expand Up @@ -325,10 +373,10 @@ components:
SourceCreate:
type: object
properties:
name:
type: string
inventory:
$ref: '#/components/schemas/Inventory'
required:
- name
- inventory

SourceList:
type: array
Expand Down
63 changes: 32 additions & 31 deletions api/v1alpha1/spec.gen.go

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

5 changes: 4 additions & 1 deletion api/v1alpha1/types.gen.go

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

180 changes: 180 additions & 0 deletions internal/api/client/client.gen.go

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

Loading
Loading