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

Updated API

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