aboutsummaryrefslogtreecommitdiffstats
path: root/golang/fatcat-openapi2.yml
diff options
context:
space:
mode:
Diffstat (limited to 'golang/fatcat-openapi2.yml')
-rw-r--r--golang/fatcat-openapi2.yml23
1 files changed, 17 insertions, 6 deletions
diff --git a/golang/fatcat-openapi2.yml b/golang/fatcat-openapi2.yml
index 5d22213f..6075940b 100644
--- a/golang/fatcat-openapi2.yml
+++ b/golang/fatcat-openapi2.yml
@@ -26,7 +26,15 @@ x-entity-props: &ENTITYPROPS
redirect:
type: string
#format: uuid
-
+x-entity-edit-props: &ENTITYEDITPROPS
+ id:
+ type: integer
+ ident:
+ type: string
+ revision:
+ type: integer
+ editgroup_id:
+ type: integer
definitions:
error:
@@ -57,10 +65,6 @@ definitions:
#format: custom
creator_entity:
type: object
- required:
- - ident
- - state
- - name
properties:
<<: *ENTITYPROPS
name:
@@ -68,6 +72,10 @@ definitions:
orcid:
type: string
#format: custom
+ entity_edit:
+ type: object
+ properties:
+ <<: *ENTITYEDITPROPS
editor:
type: object
required:
@@ -106,11 +114,14 @@ paths:
in: body
schema:
$ref: "#/definitions/creator_entity"
+ #- name: editgroup
+ # in: body
+ # type: string
responses:
201:
description: created
schema:
- $ref: "#/definitions/creator_entity"
+ $ref: "#/definitions/entity_edit"
400:
description: bad request
schema: