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

chore(openapi): remove bundles from spec #185

Merged
merged 1 commit into from
Nov 25, 2022
Merged
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
149 changes: 0 additions & 149 deletions developers-italia.oas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ servers:
tags:
- name: software
description: Operations on software
- name: bundles
description: Operations on bundles
- name: logs
description: Operations on logs
- name: publishers
Expand Down Expand Up @@ -576,144 +574,6 @@ paths:
$ref: '#/components/callbacks/ResourceUpdate'
delete:
$ref: '#/components/callbacks/ResourceDelete'
/bundles:
get:
summary: List all Bundles
description: List all Bundles
tags:
- bundles
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
data:
type: array
minItems: 0
maxItems: 100
items:
$ref: '#/components/schemas/Bundle'
links:
$ref: '#/components/schemas/Links'
'400':
$ref: '#/components/responses/BadRequest'
'429':
$ref: '#/components/responses/TooManyRequests'
operationId: list-bundles
post:
summary: Create a Bundle
description: Create a Bundle
tags:
- bundles
security:
- bearerAuth: []
operationId: create-bundles
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Bundle'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'429':
$ref: '#/components/responses/TooManyRequests'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Bundle'
examples: {}
'/bundle/{bundleId}':
parameters:
- schema:
type: string
maxLength: 36
pattern: '[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}'
name: bundleId
in: path
required: true
get:
summary: Get a Bundle
description: Get a Bundle by its id
tags:
- bundles
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Bundle'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
operationId: show-bundle-bundleId
patch:
summary: Update a Bundle
description: Update a Bundle by its id
tags:
- bundles
security:
- bearerAuth: []
operationId: update-bundle-bundleId
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Software'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'429':
$ref: '#/components/responses/TooManyRequests'
requestBody:
required: true
content:
application/merge-patch+json:
schema:
$ref: '#/components/schemas/Bundle'
delete:
summary: Delete a Bundle
description: Delete a Bundle by its id
tags:
- bundles
security:
- bearerAuth: []
operationId: remove-bundle-bundleId
responses:
'204':
$ref: '#/components/responses/NoContent'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
/logs:
get:
summary: List all Logs
Expand Down Expand Up @@ -1589,15 +1449,6 @@ components:
- createdAt
- updatedAt
- message
Bundle:
title: Bundle
type: object
additionalProperties: false
properties:
id:
type: string
maxLength: 36
pattern: '[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}'
Links:
type: object
additionalProperties: false
Expand Down