From d9356fa96fc1b7ac2a875858288eebdd28e176da Mon Sep 17 00:00:00 2001 From: Patrick Dowler Date: Tue, 20 May 2025 13:35:39 -0700 Subject: [PATCH 1/2] add create index API as an async job this proposed solution is for a parameter-style UWS job that fits the current DAL landscape --- openapi/vosi-table-ops.yaml | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 openapi/vosi-table-ops.yaml diff --git a/openapi/vosi-table-ops.yaml b/openapi/vosi-table-ops.yaml new file mode 100644 index 0000000..087216c --- /dev/null +++ b/openapi/vosi-table-ops.yaml @@ -0,0 +1,50 @@ +get: + operationId: table-ops-job-list + tags: + - Table Operations + summary: list async table update jobs + description: async job listing + parameters: + responses: + 200: + $ref: ../uws/uws-responses.yaml#/job-listing + 401: + $ref: ../vosi/vosi-std-responses.yaml#/not-authenticated + 403: + $ref: ../vosi/vosi-std-responses.yaml#/permission-denied +post: + operationId: table-ops-job-create + tags: + - Table Operations + summary: create async table update job + description: TAP asynchronous table update (create UWS Job) + parameters: + - name: TABLE + in: query + description: a single table name as provided in tap_schema + required: true + schema: + type: string + - name: INDEX + in: query + description: create index operation; value is a column name in the table + required: false + schema: + type: string + - name: UNIQUE + in: query + description: qualifier for INDEX to create a unique index + required: false + schema: + type: boolean + responses: + 303: + $ref: ../uws/uws-responses.yaml#/created + 401: + $ref: ../vosi/vosi-std-responses.yaml#/not-authenticated + 403: + $ref: ../vosi/vosi-std-responses.yaml#/permission-denied + 404: + $ref: ./vosi-std-responses.yaml#/not-found + 405: + $ref: ./vosi-std-responses.yaml#/not-implemented From c42c229ee81096b25c854dd58163062fd931680c Mon Sep 17 00:00:00 2001 From: Patrick Dowler Date: Wed, 21 May 2025 10:06:43 -0700 Subject: [PATCH 2/2] remove 405 response and fix references to other vosi components --- openapi/vosi-table-ops.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/openapi/vosi-table-ops.yaml b/openapi/vosi-table-ops.yaml index 087216c..a7394d9 100644 --- a/openapi/vosi-table-ops.yaml +++ b/openapi/vosi-table-ops.yaml @@ -9,9 +9,9 @@ get: 200: $ref: ../uws/uws-responses.yaml#/job-listing 401: - $ref: ../vosi/vosi-std-responses.yaml#/not-authenticated + $ref: ./vosi-std-responses.yaml#/not-authenticated 403: - $ref: ../vosi/vosi-std-responses.yaml#/permission-denied + $ref: ./vosi-std-responses.yaml#/permission-denied post: operationId: table-ops-job-create tags: @@ -41,10 +41,8 @@ post: 303: $ref: ../uws/uws-responses.yaml#/created 401: - $ref: ../vosi/vosi-std-responses.yaml#/not-authenticated + $ref: ./vosi-std-responses.yaml#/not-authenticated 403: - $ref: ../vosi/vosi-std-responses.yaml#/permission-denied + $ref: ./vosi-std-responses.yaml#/permission-denied 404: $ref: ./vosi-std-responses.yaml#/not-found - 405: - $ref: ./vosi-std-responses.yaml#/not-implemented