Skip to content

Commit 18830a8

Browse files
committed
Added back some stuff that shouldn't have been removed
1 parent 8dc2d72 commit 18830a8

File tree

1 file changed

+59
-31
lines changed

1 file changed

+59
-31
lines changed

public/swagger.yml

Lines changed: 59 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ paths:
365365
content: {}
366366

367367
/files/{id}/sendArchiveRequest:
368-
get:
368+
post:
369369
tags:
370370
- files
371371
summary: Submit this file to be archived
@@ -385,7 +385,7 @@ paths:
385385
content: {}
386386

387387
/files/{id}/archive:
388-
get:
388+
post:
389389
tags:
390390
- files
391391
summary: Changes a file's status to ARCHIVED
@@ -404,7 +404,7 @@ paths:
404404
content: {}
405405

406406
/files/{id}/sendUnarchiveRequest:
407-
get:
407+
post:
408408
tags:
409409
- files
410410
summary: Submit this file to be unarchived
@@ -424,7 +424,7 @@ paths:
424424
content: {}
425425

426426
/files/{id}/unarchive:
427-
get:
427+
post:
428428
tags:
429429
- files
430430
summary: Changes a file's status back to PROCESSED
@@ -909,7 +909,7 @@ paths:
909909
parameters:
910910
- name: id
911911
in: query
912-
required: false
912+
required: true
913913
schema:
914914
type: string
915915
responses:
@@ -3997,6 +3997,48 @@ paths:
39973997
404:
39983998
$ref: '#/components/responses/NotFound'
39993999

4000+
/spaces:
4001+
get:
4002+
tags:
4003+
- spaces
4004+
summary: List spaces the user can view
4005+
description: Retrieves information about spaces
4006+
parameters:
4007+
- name: title
4008+
in: query
4009+
schema:
4010+
type: string
4011+
- name: date
4012+
in: query
4013+
schema:
4014+
type: string
4015+
- name: limit
4016+
in: query
4017+
description: default as 12
4018+
schema:
4019+
type: number
4020+
responses:
4021+
200:
4022+
description: OK
4023+
content: {}
4024+
post:
4025+
tags:
4026+
- spaces
4027+
summary: Create a space
4028+
description: Spaces are groupings of collections and datasets.
4029+
requestBody:
4030+
content:
4031+
application/json:
4032+
schema:
4033+
$ref: '#/components/schemas/Space'
4034+
required: true
4035+
responses:
4036+
200:
4037+
description: OK
4038+
content: {}
4039+
400:
4040+
$ref: '#/components/responses/BadRequest'
4041+
40004042
/spaces/{id}:
40014043
get:
40024044
tags:
@@ -5784,12 +5826,10 @@ paths:
57845826

57855827

57865828
##############################################################################
5787-
# USERS ENDPOINTS #
5829+
# MISC ENDPOINTS #
57885830
##############################################################################
57895831
/me:
57905832
get:
5791-
tags:
5792-
- users
57935833
summary: Fetch current user's info
57945834
description: |
57955835
Retrieve informatation on the currently logged-in user.
@@ -5800,14 +5840,19 @@ paths:
58005840
401:
58015841
description: Not authorized
58025842
content: {}
5803-
5804-
##############################################################################
5805-
# TREE ENDPOINTS #
5806-
##############################################################################
5843+
/status:
5844+
get:
5845+
summary: Gets the status of the system
5846+
description: |
5847+
Returns a nested JSON object that contains the status of Clowder.
5848+
This includes health checks, enabled plugins, as well as helpful debug
5849+
information, such as the current size of the reindex queue.
5850+
responses:
5851+
200:
5852+
description: OK
5853+
content: {}
58075854
/tree/getChildrenOfNode:
58085855
get:
5809-
tags:
5810-
- tree
58115856
summary: Fetch children of the given node in the file tree
58125857
description: |
58135858
Fetch children of the given node in the file tree.
@@ -5969,23 +6014,6 @@ paths:
59696014
content: {}
59706015

59716016

5972-
##############################################################################
5973-
# SYSTEM ENDPOINTS #
5974-
##############################################################################
5975-
/status:
5976-
get:
5977-
tags:
5978-
- system
5979-
summary: Gets the status of the system
5980-
description: |
5981-
Returns a nested JSON object that contains the status of Clowder.
5982-
This includes health checks, enabled plugins, as well as helpful debug
5983-
information, such as the current size of the reindex queue.
5984-
responses:
5985-
200:
5986-
description: OK
5987-
content: {}
5988-
59896017
################################################################################
59906018
# Components #
59916019
################################################################################

0 commit comments

Comments
 (0)