From 77a91817f60fba821c6637a89310c9ebd722c27a Mon Sep 17 00:00:00 2001 From: Bill Shirey Date: Mon, 4 Oct 2021 19:49:45 -0400 Subject: [PATCH 1/5] added uploads get-abs-path-method --- api_endpoints.dev.json | 5 +++++ api_endpoints.localhost.json | 5 +++++ api_endpoints.prod.json | 5 +++++ api_endpoints.stage.json | 5 +++++ api_endpoints.test.json | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/api_endpoints.dev.json b/api_endpoints.dev.json index 2b78b25..fd16109 100644 --- a/api_endpoints.dev.json +++ b/api_endpoints.dev.json @@ -321,6 +321,11 @@ "endpoint": "/datasets/<*>/file-system-abs-path", "auth": false }, + { + "method": "GET", + "endpoint": "/uploads/<*>/file-system-abs-path", + "auth": false + }, { "method": "POST", "endpoint": "/datasets/ingest", diff --git a/api_endpoints.localhost.json b/api_endpoints.localhost.json index 2207c5e..142ff72 100644 --- a/api_endpoints.localhost.json +++ b/api_endpoints.localhost.json @@ -321,6 +321,11 @@ "endpoint": "/datasets/<*>/file-system-abs-path", "auth": false }, + { + "method": "GET", + "endpoint": "/uploads/<*>/file-system-abs-path", + "auth": false + }, { "method": "POST", "endpoint": "/datasets/ingest", diff --git a/api_endpoints.prod.json b/api_endpoints.prod.json index bcc1b3e..05a2568 100644 --- a/api_endpoints.prod.json +++ b/api_endpoints.prod.json @@ -321,6 +321,11 @@ "endpoint": "/datasets/<*>/file-system-abs-path", "auth": false }, + { + "method": "GET", + "endpoint": "/uploads/<*>/file-system-abs-path", + "auth": false + }, { "method": "POST", "endpoint": "/datasets/ingest", diff --git a/api_endpoints.stage.json b/api_endpoints.stage.json index 290b6a6..cbc1674 100644 --- a/api_endpoints.stage.json +++ b/api_endpoints.stage.json @@ -321,6 +321,11 @@ "endpoint": "/datasets/<*>/file-system-abs-path", "auth": false }, + { + "method": "GET", + "endpoint": "/uploads/<*>/file-system-abs-path", + "auth": false + }, { "method": "POST", "endpoint": "/datasets/ingest", diff --git a/api_endpoints.test.json b/api_endpoints.test.json index cb8c278..282b387 100644 --- a/api_endpoints.test.json +++ b/api_endpoints.test.json @@ -321,6 +321,11 @@ "endpoint": "/datasets/<*>/file-system-abs-path", "auth": false }, + { + "method": "GET", + "endpoint": "/uploads/<*>/file-system-abs-path", + "auth": false + }, { "method": "POST", "endpoint": "/datasets/ingest", From 0141343de2e5238686db1f90a3c462ef036c12bc Mon Sep 17 00:00:00 2001 From: "Zhou (Joe) Yuan" Date: Tue, 5 Oct 2021 10:26:40 -0400 Subject: [PATCH 2/5] Bump version to 2.0.17 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index a14da29..a6e7bcb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.16 +2.0.17 From 70d0a75124385da8a1cab17b049c37a0d29e0815 Mon Sep 17 00:00:00 2001 From: yuanzhou Date: Mon, 11 Oct 2021 14:00:17 -0400 Subject: [PATCH 3/5] Enable ontology-api nginx conf for PROD --- .../conf.d-prod/{ontology-api.conf.disabled => ontology-api.conf} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename nginx/conf.d-prod/{ontology-api.conf.disabled => ontology-api.conf} (100%) diff --git a/nginx/conf.d-prod/ontology-api.conf.disabled b/nginx/conf.d-prod/ontology-api.conf similarity index 100% rename from nginx/conf.d-prod/ontology-api.conf.disabled rename to nginx/conf.d-prod/ontology-api.conf From 6e45232951a6df9b0c1c1f36a35a0f9b8889eec6 Mon Sep 17 00:00:00 2001 From: ChuckKollar Date: Tue, 12 Oct 2021 15:36:21 -0400 Subject: [PATCH 4/5] Added fullCapacityParameterizedTerm endpoint with no-auth --- api_endpoints.dev.json | 5 +++++ api_endpoints.localhost.json | 5 +++++ api_endpoints.prod.json | 5 +++++ api_endpoints.stage.json | 5 +++++ api_endpoints.test.json | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/api_endpoints.dev.json b/api_endpoints.dev.json index fd16109..d566089 100644 --- a/api_endpoints.dev.json +++ b/api_endpoints.dev.json @@ -812,6 +812,11 @@ "method": "GET", "endpoint": "/tui/<*>/semantics", "auth": false + }, + { + "method": "GET", + "endpoint": "/fullCapacityParameterizedTerm/<*>", + "auth": false } ] } diff --git a/api_endpoints.localhost.json b/api_endpoints.localhost.json index 142ff72..4e98f67 100644 --- a/api_endpoints.localhost.json +++ b/api_endpoints.localhost.json @@ -812,6 +812,11 @@ "method": "GET", "endpoint": "/tui/<*>/semantics", "auth": false + }, + { + "method": "GET", + "endpoint": "/fullCapacityParameterizedTerm/<*>", + "auth": false } ] } diff --git a/api_endpoints.prod.json b/api_endpoints.prod.json index 05a2568..6f9b8fd 100644 --- a/api_endpoints.prod.json +++ b/api_endpoints.prod.json @@ -812,6 +812,11 @@ "method": "GET", "endpoint": "/tui/<*>/semantics", "auth": false + }, + { + "method": "GET", + "endpoint": "/fullCapacityParameterizedTerm/<*>", + "auth": false } ] } diff --git a/api_endpoints.stage.json b/api_endpoints.stage.json index cbc1674..43317d8 100644 --- a/api_endpoints.stage.json +++ b/api_endpoints.stage.json @@ -812,6 +812,11 @@ "method": "GET", "endpoint": "/tui/<*>/semantics", "auth": false + }, + { + "method": "GET", + "endpoint": "/fullCapacityParameterizedTerm/<*>", + "auth": false } ] } diff --git a/api_endpoints.test.json b/api_endpoints.test.json index 282b387..62d9f5a 100644 --- a/api_endpoints.test.json +++ b/api_endpoints.test.json @@ -812,6 +812,11 @@ "method": "GET", "endpoint": "/tui/<*>/semantics", "auth": false + }, + { + "method": "GET", + "endpoint": "/fullCapacityParameterizedTerm/<*>", + "auth": false } ] } From a114b8d9728557fa3584f1ef5e417e0813a4c4ed Mon Sep 17 00:00:00 2001 From: yuanzhou Date: Mon, 18 Oct 2021 15:34:57 -0400 Subject: [PATCH 5/5] Allow max 10MB file upload for antibody-api --- nginx/conf.d-dev/antibody-api.conf | 3 +++ nginx/conf.d-test/antibody-api.conf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/nginx/conf.d-dev/antibody-api.conf b/nginx/conf.d-dev/antibody-api.conf index c8a8521..1e60a12 100644 --- a/nginx/conf.d-dev/antibody-api.conf +++ b/nginx/conf.d-dev/antibody-api.conf @@ -27,6 +27,9 @@ server { access_log /usr/src/app/log/nginx_access_antibody-api.log; error_log /usr/src/app/log/nginx_error_antibody-api.log warn; + # Set file upload size liit to 10M, default is 1M. + client_max_body_size 10M; + # No auth_request for favicon location = /favicon.ico { alias /usr/share/nginx/html/favicon.ico; diff --git a/nginx/conf.d-test/antibody-api.conf b/nginx/conf.d-test/antibody-api.conf index fd210d1..9684bc9 100644 --- a/nginx/conf.d-test/antibody-api.conf +++ b/nginx/conf.d-test/antibody-api.conf @@ -27,6 +27,9 @@ server { access_log /usr/src/app/log/nginx_access_antibody-api.log; error_log /usr/src/app/log/nginx_error_antibody-api.log warn; + # Set file upload size liit to 10M, default is 1M. + client_max_body_size 10M; + # No auth_request for favicon location = /favicon.ico { alias /usr/share/nginx/html/favicon.ico;