diff --git a/.gitignore b/.gitignore index 8ea79b663bdad8ebc2d40326d9aec70e509b30a1..931dffe23ce51a23a7e1e8710f5deeaff2b7b54c 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,7 @@ swagger/api-semantics/ swagger/api-data/ swagger/api-mirror/ swagger/api-user/ +swagger/api-upload/ swagger/api/ swagger/**/*.png swagger/**/*.css diff --git a/Makefile b/Makefile index c6ff5b7947f9b5e23efef284ffdc0f7a8867736c..070bc3ba93f45fab693b8b9a773aa81dd2d13004 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: clean docs TAG ?= latest -BASE_URL ?= / +BASE_URL ?= "" all: build diff --git a/swagger/api-upload.yaml b/swagger/api-upload.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6f93138b86ac7312d0f05c8cf4c90e08013b4749 --- /dev/null +++ b/swagger/api-upload.yaml @@ -0,0 +1,30 @@ +openapi: 3.0.1 +info: + title: Database Repository Upload Service API + description: Service that manages the uploads + contact: + name: Prof. Andreas Rauber + email: andreas.rauber@tuwien.ac.at + license: + name: Apache 2.0 + url: https://www.apache.org/licenses/LICENSE-2.0 + version: 1.3.0 +externalDocs: + description: Sourcecode Documentation + url: https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services +servers: +- url: http://localhost:1080 + description: Generated server url +- url: https://test.dbrepo.tuwien.ac.at + description: Sandbox +paths: + /api/upload/files: + post: + tags: + - upload-endpoint + summary: Uploads a file + operationId: upload + responses: + "201": + description: "Successfully uploaded a file" + security: {} \ No newline at end of file diff --git a/swagger/upload/api.yaml b/swagger/upload/api.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6f93138b86ac7312d0f05c8cf4c90e08013b4749 --- /dev/null +++ b/swagger/upload/api.yaml @@ -0,0 +1,30 @@ +openapi: 3.0.1 +info: + title: Database Repository Upload Service API + description: Service that manages the uploads + contact: + name: Prof. Andreas Rauber + email: andreas.rauber@tuwien.ac.at + license: + name: Apache 2.0 + url: https://www.apache.org/licenses/LICENSE-2.0 + version: 1.3.0 +externalDocs: + description: Sourcecode Documentation + url: https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services +servers: +- url: http://localhost:1080 + description: Generated server url +- url: https://test.dbrepo.tuwien.ac.at + description: Sandbox +paths: + /api/upload/files: + post: + tags: + - upload-endpoint + summary: Uploads a file + operationId: upload + responses: + "201": + description: "Successfully uploaded a file" + security: {} \ No newline at end of file