Skip to content

Commit

Permalink
Deploying to gh-pages from @ ee79ddc 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrynenko committed Dec 24, 2024
1 parent e65a03d commit 7ed77ef
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
45 changes: 45 additions & 0 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,51 @@
}
}
},
"delete": {
"tags": [
"Values"
],
"summary": "Delete value",
"description": "Delete value from storage. If no filter query specified nothing is delete, because one of filters is required. \nWhen filtering by value, service queries not by exact match and if any value found deletes it. \nAlso take into account that value is Base64 encoded, so may contain some escape symbol that should be encoded.\n",
"operationId": "GetData",
"parameters": [
{
"$ref": "#/components/parameters/DataKeyParam"
},
{
"$ref": "#/components/parameters/DataValueParam"
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/vnd.api+json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"$ref": "#/components/schemas/Value"
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/invalidParameter"
},
"404": {
"$ref": "#/components/responses/notFound"
},
"500": {
"$ref": "#/components/responses/internalError"
}
}
},
"get": {
"tags": [
"Values"
Expand Down
30 changes: 30 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,36 @@ paths:
$ref: '#/components/responses/notFound'
'500':
$ref: '#/components/responses/internalError'
delete:
tags:
- Values
summary: Delete value
description: |
Delete value from storage. If no filter query specified nothing is delete, because one of filters is required.
When filtering by value, service queries not by exact match and if any value found deletes it.
Also take into account that value is Base64 encoded, so may contain some escape symbol that should be encoded.
operationId: GetData
parameters:
- $ref: '#/components/parameters/DataKeyParam'
- $ref: '#/components/parameters/DataValueParam'
responses:
'200':
description: Success
content:
application/vnd.api+json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/Value'
'400':
$ref: '#/components/responses/invalidParameter'
'404':
$ref: '#/components/responses/notFound'
'500':
$ref: '#/components/responses/internalError'
get:
tags:
- Values
Expand Down

0 comments on commit 7ed77ef

Please sign in to comment.