1
1
openapi : 3.0.0
2
2
info :
3
3
title : PlatIAgro Projects API
4
- version : 0.3.0
4
+ version : 0.3.1
5
5
description : >
6
6
These are the docs for PlatIAgro Projects API. The endpoints below are
7
7
usually accessed by the PlatIAgro Web-UI.
@@ -96,34 +96,15 @@ paths:
96
96
CannotConnectToDatabase :
97
97
$ref : ' #/components/examples/CannotConnectToDatabase'
98
98
/tasks :
99
- get :
100
- summary : ' List tasks. Supports pagination, and sorting. '
99
+ post :
100
+ summary : Create a new task.
101
101
tags :
102
102
- Tasks
103
- parameters :
104
- - in : query
105
- name : name
106
- schema :
107
- type : string
108
- description : Name filter
109
- - in : query
110
- name : page
111
- schema :
112
- type : integer
113
- description : Page number
114
- - in : query
115
- name : page_size
116
- schema :
117
- type : integer
118
- description : Page size
119
- - in : query
120
- name : order
121
- schema :
122
- type : string
123
- example : uuid asc
103
+ requestBody :
104
+ $ref : ' #/components/requestBodies/TaskPost'
124
105
responses :
125
106
' 200 ' :
126
- $ref : ' #/components/responses/Tasks '
107
+ $ref : ' #/components/responses/Task '
127
108
' 400 ' :
128
109
description : >
129
110
Bad Request response status code indicates that the server cannot or
@@ -135,21 +116,28 @@ paths:
135
116
schema :
136
117
$ref : ' #/components/schemas/BadRequest'
137
118
examples :
138
- InvalidOrderBy :
139
- $ref : ' #/components/examples/InvalidOrderBy'
119
+ MissingRequiredNotebookOrTaskId :
120
+ $ref : ' #/components/examples/MissingRequiredNotebookOrTaskId'
121
+ TaskNameExists :
122
+ $ref : ' #/components/examples/TaskNameExists'
123
+ InvalidTaskId :
124
+ $ref : ' #/components/examples/InvalidTaskId'
125
+ InvalidCategory :
126
+ $ref : ' #/components/examples/InvalidCategory'
140
127
' 500 ' :
141
128
$ref : ' #/components/responses/InternalServerError'
142
129
' 503 ' :
143
130
$ref : ' #/components/responses/ServiceUnavailable'
131
+ /tasks/list-tasks :
144
132
post :
145
- summary : Create a new task.
133
+ summary : ' List tasks. Supports pagination, and sorting. '
146
134
tags :
147
135
- Tasks
148
136
requestBody :
149
- $ref : ' #/components/requestBodies/TaskPost '
137
+ $ref : ' #/components/requestBodies/ListTasks '
150
138
responses :
151
139
' 200 ' :
152
- $ref : ' #/components/responses/Task '
140
+ $ref : ' #/components/responses/Tasks '
153
141
' 400 ' :
154
142
description : >
155
143
Bad Request response status code indicates that the server cannot or
@@ -161,14 +149,12 @@ paths:
161
149
schema :
162
150
$ref : ' #/components/schemas/BadRequest'
163
151
examples :
164
- MissingRequiredNotebookOrTaskId :
165
- $ref : ' #/components/examples/MissingRequiredNotebookOrTaskId'
166
- TaskNameExists :
167
- $ref : ' #/components/examples/TaskNameExists'
168
- InvalidTaskId :
169
- $ref : ' #/components/examples/InvalidTaskId'
170
- InvalidCategory :
171
- $ref : ' #/components/examples/InvalidCategory'
152
+ InvalidOrderBy :
153
+ $ref : ' #/components/examples/InvalidOrderBy'
154
+ NotAllowedCharacter :
155
+ $ref : ' #/components/examples/NotAllowedCharacter'
156
+ ExceededCharacterAmount :
157
+ $ref : ' #/components/examples/ExceededCharacterAmount'
172
158
' 500 ' :
173
159
$ref : ' #/components/responses/InternalServerError'
174
160
' 503 ' :
@@ -382,7 +368,7 @@ paths:
382
368
$ref : ' #/components/responses/InternalServerError'
383
369
' 503 ' :
384
370
$ref : ' #/components/responses/ServiceUnavailable'
385
- /projects/listprojects :
371
+ /projects/list-projects :
386
372
post :
387
373
summary : ' List projects. Supports pagination, and sorting.'
388
374
tags :
@@ -405,6 +391,10 @@ paths:
405
391
examples :
406
392
InvalidOrderBy :
407
393
$ref : ' #/components/examples/InvalidOrderBy'
394
+ NotAllowedCharacter :
395
+ $ref : ' #/components/examples/NotAllowedCharacter'
396
+ ExceededCharacterAmount :
397
+ $ref : ' #/components/examples/ExceededCharacterAmount'
408
398
' 500 ' :
409
399
$ref : ' #/components/responses/InternalServerError'
410
400
' 503 ' :
@@ -710,6 +700,23 @@ paths:
710
700
responses :
711
701
' 200 ' :
712
702
$ref : ' #/components/responses/Experiments'
703
+ ' 400 ' :
704
+ description : >
705
+ Bad Request response status code indicates that the server cannot or
706
+ will not process the request due to something that is perceived to
707
+ be a client error. A common cause is that the client has sent
708
+ invalid request values.
709
+ content :
710
+ application/json :
711
+ schema :
712
+ $ref : ' #/components/schemas/BadRequest'
713
+ examples :
714
+ InvalidOrderBy :
715
+ $ref : ' #/components/examples/InvalidOrderBy'
716
+ NotAllowedCharacter :
717
+ $ref : ' #/components/examples/NotAllowedCharacter'
718
+ ExceededCharacterAmount :
719
+ $ref : ' #/components/examples/ExceededCharacterAmount'
713
720
' 404 ' :
714
721
description : >
715
722
Not Found client error response code indicates that the server can't
@@ -3975,6 +3982,23 @@ components:
3975
3982
type : number
3976
3983
h :
3977
3984
type : number
3985
+ ListTasks :
3986
+ content :
3987
+ application/json :
3988
+ schema :
3989
+ type : object
3990
+ properties :
3991
+ filters :
3992
+ type : object
3993
+ properties :
3994
+ name :
3995
+ type : string
3996
+ order :
3997
+ type : string
3998
+ page :
3999
+ type : integer
4000
+ page_size :
4001
+ type : integer
3978
4002
TaskPost :
3979
4003
content :
3980
4004
application/json :
@@ -4677,6 +4701,14 @@ components:
4677
4701
value :
4678
4702
code : InvalidOrderBy
4679
4703
message : Invalid order argument
4704
+ NotAllowedCharacter :
4705
+ value :
4706
+ code : NotAllowedChar
4707
+ message : Character not Allowed
4708
+ ExceededCharacterAmount :
4709
+ value :
4710
+ code : ExceededCharQuantity
4711
+ message : Exceeded maximum character quantity allowed
4680
4712
ProjectNameExists :
4681
4713
value :
4682
4714
code : ProjectNameExists
0 commit comments