Skip to content

Commit e74183e

Browse files
committed
Cleanup packfile endpoints
Removed packfile endpoints for sessions, collections, and acquisitions. Added missing parameters to packfile and packfile-end endpoints.
1 parent 8dd3712 commit e74183e

File tree

5 files changed

+16
-29
lines changed

5 files changed

+16
-29
lines changed

swagger/paths/acquisitions.yaml

-8
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ $template_arguments:
2626
/acquisitions/{AcquisitionId}/tags/{TagValue}:
2727
$template: templates/tags-tag.yaml
2828

29-
# ===== Packfile =====
30-
/acquisitions/{AcquisitionId}/packfile-start:
31-
$template: templates/packfile-start.yaml
32-
/acquisitions/{AcquisitionId}/packfile:
33-
$template: templates/packfile.yaml
34-
/acquisitions/{AcquisitionId}/packfile-end:
35-
$template: templates/packfile-end.yaml
36-
3729
# ===== Files =====
3830
/acquisitions/{AcquisitionId}/files:
3931
$template: templates/file-list-upload.yaml

swagger/paths/collections.yaml

-8
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,6 @@ $template_arguments:
150150
/collections/{CollectionId}/tags/{TagValue}:
151151
$template: templates/tags-tag.yaml
152152

153-
# ===== Packfile =====
154-
/collections/{CollectionId}/packfile-start:
155-
$template: templates/packfile-start.yaml
156-
/collections/{CollectionId}/packfile:
157-
$template: templates/packfile.yaml
158-
/collections/{CollectionId}/packfile-end:
159-
$template: templates/packfile-end.yaml
160-
161153
# ===== Files =====
162154
/collections/{CollectionId}/files:
163155
$template: templates/file-list-upload.yaml

swagger/paths/sessions.yaml

-8
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,6 @@ $template_arguments:
5151
/sessions/{SessionId}/tags/{TagValue}:
5252
$template: templates/tags-tag.yaml
5353

54-
# ===== Packfile =====
55-
/sessions/{SessionId}/packfile-start:
56-
$template: templates/packfile-start.yaml
57-
/sessions/{SessionId}/packfile:
58-
$template: templates/packfile.yaml
59-
/sessions/{SessionId}/packfile-end:
60-
$template: templates/packfile-end.yaml
61-
6254
# ===== Files =====
6355
/sessions/{SessionId}/files:
6456
$template: templates/file-list-upload.yaml

swagger/templates/packfile-end.yaml

+9-3
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,23 @@ template: |
1414
type: string
1515
in: path
1616
name: '{{parameter}}'
17-
post:
17+
get:
1818
summary: End a packfile upload
1919
operationId: end_{{resource}}_packfile_upload
2020
tags:
2121
- '{{tag}}'
2222
produces:
2323
- text/event-stream
2424
parameters:
25-
- in: formData
26-
name: formData
25+
- name: token
26+
in: query
2727
type: string
28+
required: true
29+
- name: metadata
30+
in: query
31+
type: string
32+
required: true
33+
description: string-encoded metadata json object.
2834
responses:
2935
'200':
3036
description: ''

swagger/templates/packfile.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@ template: |
2222
consumes:
2323
- multipart/form-data
2424
parameters:
25-
- in: formData
26-
name: formData
25+
- name: token
26+
in: query
2727
type: string
28+
required: true
29+
- name: file
30+
in: formData
31+
type: file
32+
required: true
2833
responses:
2934
'200':
3035
description: ''

0 commit comments

Comments
 (0)