summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-11 16:08:23 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-11 16:08:28 -0700
commit6315c314969d4e66db4da09a8c2ff245aafe0fc1 (patch)
treec43ee11e1f2a466081b796baa3009f92ec417a77
parent7066f94fb8db679013a0a7bbd3eff993195f8383 (diff)
downloadfatcat-6315c314969d4e66db4da09a8c2ff245aafe0fc1.tar.gz
fatcat-6315c314969d4e66db4da09a8c2ff245aafe0fc1.zip
refactor editgroup parameter passing
It's always a query param, and applies to the whole operation. Batch insert behavior is a little more complex.
-rw-r--r--fatcat-openapi2.yml49
1 files changed, 43 insertions, 6 deletions
diff --git a/fatcat-openapi2.yml b/fatcat-openapi2.yml
index 2b0615d2..d5414405 100644
--- a/fatcat-openapi2.yml
+++ b/fatcat-openapi2.yml
@@ -52,15 +52,12 @@ x-entity-props: &ENTITYPROPS
<<: *FATCATUUID
redirect:
<<: *FATCATIDENT
- editgroup_id:
- <<: *FATCATIDENT
extra:
type: object
additionalProperties: {}
-# TODO:
-# edit_extra:
-# type: object
-# additionalProperties: {}
+ edit_extra:
+ type: object
+ additionalProperties: {}
definitions:
error_response:
@@ -432,6 +429,10 @@ paths:
required: true
schema:
$ref: "#/definitions/container_entity"
+ - name: editgroup
+ in: query
+ required: false
+ type: string
responses:
201:
description: Created Entity
@@ -495,6 +496,10 @@ paths:
required: true
schema:
$ref: "#/definitions/container_entity"
+ - name: editgroup
+ in: query
+ required: false
+ type: string
responses:
200:
description: Updated Entity
@@ -558,6 +563,10 @@ paths:
required: true
schema:
$ref: "#/definitions/creator_entity"
+ - name: editgroup
+ in: query
+ required: false
+ type: string
responses:
201:
description: Created Entity
@@ -621,6 +630,10 @@ paths:
required: true
schema:
$ref: "#/definitions/creator_entity"
+ - name: editgroup
+ in: query
+ required: false
+ type: string
responses:
200:
description: Updated Entity
@@ -700,6 +713,10 @@ paths:
required: true
schema:
$ref: "#/definitions/file_entity"
+ - name: editgroup
+ in: query
+ required: false
+ type: string
responses:
201:
description: Created Entity
@@ -763,6 +780,10 @@ paths:
required: true
schema:
$ref: "#/definitions/file_entity"
+ - name: editgroup
+ in: query
+ required: false
+ type: string
responses:
200:
description: Updated Entity
@@ -826,6 +847,10 @@ paths:
required: true
schema:
$ref: "#/definitions/release_entity"
+ - name: editgroup
+ in: query
+ required: false
+ type: string
responses:
201:
description: Created Entity
@@ -889,6 +914,10 @@ paths:
required: true
schema:
$ref: "#/definitions/release_entity"
+ - name: editgroup
+ in: query
+ required: false
+ type: string
responses:
200:
description: Updated Entity
@@ -968,6 +997,10 @@ paths:
required: true
schema:
$ref: "#/definitions/work_entity"
+ - name: editgroup
+ in: query
+ required: false
+ type: string
responses:
201:
description: Created Entity
@@ -1031,6 +1064,10 @@ paths:
required: true
schema:
$ref: "#/definitions/work_entity"
+ - name: editgroup
+ in: query
+ required: false
+ type: string
responses:
200:
description: Updated Entity