Skip to content

Commit

Permalink
chore(openapi): remove bundles from spec
Browse files Browse the repository at this point in the history
Remove Bundles from spec until the actual implementation
(#13)
  • Loading branch information
bfabio committed Nov 25, 2022
1 parent 1e54f15 commit 31d8bef
Showing 1 changed file with 0 additions and 149 deletions.
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

0 comments on commit 31d8bef

Please sign in to comment.