Skip to content
Snippets Groups Projects
Verified Commit fc96c675 authored by Martin Weise's avatar Martin Weise
Browse files

Updated API

parent 222a99d8
Branches
Tags
1 merge request!393Wrong dependencies
...@@ -63,32 +63,32 @@ paths: ...@@ -63,32 +63,32 @@ paths:
schema: schema:
type: string type: string
responses: responses:
"403": "406":
description: Not allowed to retrieve view data description: Failed to format data
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"404": "400":
description: Failed to find view in metadata database description: Request pagination is malformed
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"400": "409":
description: Request pagination is malformed description: View schema could not be mapped
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"406": "404":
description: Failed to format data description: Failed to find view in metadata database
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"409": "503":
description: View schema could not be mapped description: Failed to establish connection with the metadata service
content: content:
application/json: application/json:
schema: schema:
...@@ -109,8 +109,8 @@ paths: ...@@ -109,8 +109,8 @@ paths:
schema: schema:
type: string type: string
text/csv: {} text/csv: {}
"503": "403":
description: Failed to establish connection with the metadata service description: Not allowed to retrieve view data
content: content:
application/json: application/json:
schema: schema:
...@@ -162,32 +162,32 @@ paths: ...@@ -162,32 +162,32 @@ paths:
schema: schema:
type: string type: string
responses: responses:
"403": "406":
description: Not allowed to retrieve view data description: Failed to format data
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"404": "400":
description: Failed to find view in metadata database description: Request pagination is malformed
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"400": "409":
description: Request pagination is malformed description: View schema could not be mapped
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"406": "404":
description: Failed to format data description: Failed to find view in metadata database
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"409": "503":
description: View schema could not be mapped description: Failed to establish connection with the metadata service
content: content:
application/json: application/json:
schema: schema:
...@@ -208,8 +208,8 @@ paths: ...@@ -208,8 +208,8 @@ paths:
schema: schema:
type: string type: string
text/csv: {} text/csv: {}
"503": "403":
description: Failed to establish connection with the metadata service description: Not allowed to retrieve view data
content: content:
application/json: application/json:
schema: schema:
...@@ -264,14 +264,14 @@ paths: ...@@ -264,14 +264,14 @@ paths:
schema: schema:
type: string type: string
responses: responses:
"404": "406":
description: Failed to find table in metadata database description: Failed to format data
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"400": "404":
description: Request pagination or table data select query is malformed description: Failed to find table in metadata database
content: content:
application/json: application/json:
schema: schema:
...@@ -292,20 +292,20 @@ paths: ...@@ -292,20 +292,20 @@ paths:
schema: schema:
type: string type: string
text/csv: {} text/csv: {}
"406": "403":
description: Failed to format data description: Not allowed to get table data
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"503": "400":
description: Failed to establish connection with the metadata service description: Request pagination or table data select query is malformed
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"403": "503":
description: Not allowed to get table data description: Failed to establish connection with the metadata service
content: content:
application/json: application/json:
schema: schema:
...@@ -346,28 +346,28 @@ paths: ...@@ -346,28 +346,28 @@ paths:
$ref: "#/components/schemas/TupleUpdateDto" $ref: "#/components/schemas/TupleUpdateDto"
required: true required: true
responses: responses:
"404": "403":
description: Failed to find table in metadata database description: Update table data not allowed
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"400": "404":
description: Request pagination or table data select query is malformed description: Failed to find table in metadata database
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"202": "202":
description: Updated table data description: Updated table data
"503": "400":
description: Failed to establish connection with the metadata service description: Request pagination or table data select query is malformed
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"403": "503":
description: Update table data not allowed description: Failed to establish connection with the metadata service
content: content:
application/json: application/json:
schema: schema:
...@@ -408,12 +408,6 @@ paths: ...@@ -408,12 +408,6 @@ paths:
$ref: "#/components/schemas/TupleDto" $ref: "#/components/schemas/TupleDto"
required: true required: true
responses: responses:
"400":
description: Request pagination or table data select query is malformed
content:
application/json:
schema:
$ref: "#/components/schemas/ApiErrorDto"
"403": "403":
description: Create table data not allowed description: Create table data not allowed
content: content:
...@@ -427,8 +421,6 @@ paths: ...@@ -427,8 +421,6 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"201":
description: Created table data
"404": "404":
description: Failed to find table in metadata database or blob in storage description: Failed to find table in metadata database or blob in storage
service service
...@@ -436,6 +428,14 @@ paths: ...@@ -436,6 +428,14 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"201":
description: Created table data
"400":
description: Request pagination or table data select query is malformed
content:
application/json:
schema:
$ref: "#/components/schemas/ApiErrorDto"
security: security:
- basicAuth: [] - basicAuth: []
- bearerAuth: [] - bearerAuth: []
...@@ -478,22 +478,22 @@ paths: ...@@ -478,22 +478,22 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"202":
description: Deleted table data
"400": "400":
description: Request pagination or table data select query is malformed description: Request pagination or table data select query is malformed
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"403": "503":
description: Delete table data not allowed description: Failed to establish connection with the metadata service
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"202": "403":
description: Deleted table data description: Delete table data not allowed
"503":
description: Failed to establish connection with the metadata service
content: content:
application/json: application/json:
schema: schema:
...@@ -547,14 +547,14 @@ paths: ...@@ -547,14 +547,14 @@ paths:
schema: schema:
type: string type: string
responses: responses:
"404": "406":
description: Failed to find table in metadata database description: Failed to format data
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"400": "404":
description: Request pagination or table data select query is malformed description: Failed to find table in metadata database
content: content:
application/json: application/json:
schema: schema:
...@@ -575,20 +575,20 @@ paths: ...@@ -575,20 +575,20 @@ paths:
schema: schema:
type: string type: string
text/csv: {} text/csv: {}
"406": "403":
description: Failed to format data description: Not allowed to get table data
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"503": "400":
description: Failed to establish connection with the metadata service description: Request pagination or table data select query is malformed
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"403": "503":
description: Not allowed to get table data description: Failed to establish connection with the metadata service
content: content:
application/json: application/json:
schema: schema:
...@@ -643,13 +643,6 @@ paths: ...@@ -643,13 +643,6 @@ paths:
type: integer type: integer
format: int64 format: int64
responses: responses:
"404":
description: Failed to find database in metadata database or query in query
store of the data database
content:
application/json:
schema:
$ref: "#/components/schemas/ApiErrorDto"
"403": "403":
description: Not allowed to retrieve subset data description: Not allowed to retrieve subset data
content: content:
...@@ -662,12 +655,6 @@ paths: ...@@ -662,12 +655,6 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"400":
description: Invalid pagination
content:
application/json:
schema:
$ref: "#/components/schemas/ApiErrorDto"
"200": "200":
description: Retrieved subset data description: Retrieved subset data
headers: headers:
...@@ -696,6 +683,19 @@ paths: ...@@ -696,6 +683,19 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"400":
description: Invalid pagination
content:
application/json:
schema:
$ref: "#/components/schemas/ApiErrorDto"
"404":
description: Failed to find database in metadata database or query in query
store of the data database
content:
application/json:
schema:
$ref: "#/components/schemas/ApiErrorDto"
security: security:
- bearerAuth: [] - bearerAuth: []
- basicAuth: [] - basicAuth: []
...@@ -745,13 +745,6 @@ paths: ...@@ -745,13 +745,6 @@ paths:
type: integer type: integer
format: int64 format: int64
responses: responses:
"404":
description: Failed to find database in metadata database or query in query
store of the data database
content:
application/json:
schema:
$ref: "#/components/schemas/ApiErrorDto"
"403": "403":
description: Not allowed to retrieve subset data description: Not allowed to retrieve subset data
content: content:
...@@ -764,12 +757,6 @@ paths: ...@@ -764,12 +757,6 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"400":
description: Invalid pagination
content:
application/json:
schema:
$ref: "#/components/schemas/ApiErrorDto"
"200": "200":
description: Retrieved subset data description: Retrieved subset data
headers: headers:
...@@ -798,6 +785,19 @@ paths: ...@@ -798,6 +785,19 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"400":
description: Invalid pagination
content:
application/json:
schema:
$ref: "#/components/schemas/ApiErrorDto"
"404":
description: Failed to find database in metadata database or query in query
store of the data database
content:
application/json:
schema:
$ref: "#/components/schemas/ApiErrorDto"
security: security:
- bearerAuth: [] - bearerAuth: []
- basicAuth: [] - basicAuth: []
...@@ -828,39 +828,39 @@ paths: ...@@ -828,39 +828,39 @@ paths:
$ref: "#/components/schemas/QueryPersistDto" $ref: "#/components/schemas/QueryPersistDto"
required: true required: true
responses: responses:
"403": "400":
description: Not allowed to persist subset description: Malformed select query
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"404": "417":
description: Failed to find database in metadata database or query in query description: Failed to persist subset
store of the data database
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"202": "503":
description: Persisted subset description: Failed to communicate with database
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/QueryDto" $ref: "#/components/schemas/ApiErrorDto"
"400": "403":
description: Malformed select query description: Not allowed to persist subset
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"503": "202":
description: Failed to communicate with database description: Persisted subset
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/QueryDto"
"417": "404":
description: Failed to persist subset description: Failed to find database in metadata database or query in query
store of the data database
content: content:
application/json: application/json:
schema: schema:
...@@ -939,28 +939,28 @@ paths: ...@@ -939,28 +939,28 @@ paths:
$ref: "#/components/schemas/ImportDto" $ref: "#/components/schemas/ImportDto"
required: true required: true
responses: responses:
"404": "400":
description: Failed to find table in metadata database description: Dataset and/or query are malformed
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"202": "202":
description: Imported dataset successfully description: Imported dataset successfully
"400": "404":
description: Dataset and/or query are malformed description: Failed to find table in metadata database
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"503": "403":
description: Failed to establish connection with the metadata service description: Import table dataset not allowed
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"403": "503":
description: Import table dataset not allowed description: Failed to establish connection with the metadata service
content: content:
application/json: application/json:
schema: schema:
...@@ -1000,9 +1000,8 @@ paths: ...@@ -1000,9 +1000,8 @@ paths:
type: array type: array
items: items:
$ref: "#/components/schemas/QueryDto" $ref: "#/components/schemas/QueryDto"
"404": "503":
description: Failed to find database in metadata database or query in query description: Failed to communicate with database
store of the data database
content: content:
application/json: application/json:
schema: schema:
...@@ -1013,8 +1012,9 @@ paths: ...@@ -1013,8 +1012,9 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"503": "404":
description: Failed to communicate with database description: Failed to find database in metadata database or query in query
store of the data database
content: content:
application/json: application/json:
schema: schema:
...@@ -1063,51 +1063,51 @@ paths: ...@@ -1063,51 +1063,51 @@ paths:
$ref: "#/components/schemas/SubsetDto" $ref: "#/components/schemas/SubsetDto"
required: true required: true
responses: responses:
"403": "400":
description: Not allowed to find subset description: Malformed select query
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"501": "406":
description: Failed to execute query as it contains non-supported keywords description: Failed to format data
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"404": "417":
description: Failed to find database in metadata database or query in query description: Failed to insert query into query store of data database
store of the data database
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"417": "403":
description: Failed to insert query into query store of data database description: Not allowed to find subset
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"406": "503":
description: Failed to format data description: Failed to communicate with database
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"201": "501":
description: Created subset description: Failed to execute query as it contains non-supported keywords
content: content:
application/json: application/json:
schema: schema:
type: string $ref: "#/components/schemas/ApiErrorDto"
"400": "201":
description: Malformed select query description: Created subset
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" type: string
"503": "404":
description: Failed to communicate with database description: Failed to find database in metadata database or query in query
store of the data database
content: content:
application/json: application/json:
schema: schema:
...@@ -1144,14 +1144,8 @@ paths: ...@@ -1144,14 +1144,8 @@ paths:
type: integer type: integer
format: int64 format: int64
responses: responses:
"403": "404":
description: Find table history not allowed description: Failed to find table history in data database
content:
application/json:
schema:
$ref: "#/components/schemas/ApiErrorDto"
"400":
description: "Invalid pagination size request, must be > 0"
content: content:
application/json: application/json:
schema: schema:
...@@ -1164,14 +1158,20 @@ paths: ...@@ -1164,14 +1158,20 @@ paths:
type: array type: array
items: items:
$ref: "#/components/schemas/TableHistoryDto" $ref: "#/components/schemas/TableHistoryDto"
"503": "403":
description: Failed to establish connection with the metadata service description: Find table history not allowed
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"404": "400":
description: Failed to find table history in data database description: "Invalid pagination size request, must be > 0"
content:
application/json:
schema:
$ref: "#/components/schemas/ApiErrorDto"
"503":
description: Failed to establish connection with the metadata service
content: content:
application/json: application/json:
schema: schema:
...@@ -1210,40 +1210,40 @@ paths: ...@@ -1210,40 +1210,40 @@ paths:
type: string type: string
format: date-time format: date-time
responses: responses:
"200": "400":
description: Found subset description: Malformed select query
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/QueryDto" $ref: "#/components/schemas/ApiErrorDto"
text/csv: {}
"403": "403":
description: Not allowed to find subset description: Not allowed to find subset
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"404": "406":
description: Failed to find database in metadata database or query in query description: Failed to find acceptable representation
store of the data database
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"400": "503":
description: Malformed select query description: Failed to communicate with database
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/ApiErrorDto"
"406": "200":
description: Failed to find acceptable representation description: Found subset
content: content:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/ApiErrorDto" $ref: "#/components/schemas/QueryDto"
"503": text/csv: {}
description: Failed to communicate with database "404":
description: Failed to find database in metadata database or query in query
store of the data database
content: content:
application/json: application/json:
schema: schema:
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment