diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-27 14:45:07 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-27 14:45:18 -0700 |
commit | 19eb1641eece9f03ca193417cdf244efc1a9da8a (patch) | |
tree | 78545c8e2117bcb0b46680de10d9a49b8f01d75f /rust/fatcat-openapi2.yml | |
parent | 29e02c4321762e9c0efcbd2129885ff0af661b34 (diff) | |
download | fatcat-19eb1641eece9f03ca193417cdf244efc1a9da8a.tar.gz fatcat-19eb1641eece9f03ca193417cdf244efc1a9da8a.zip |
swagger spec: body -> entity
Diffstat (limited to 'rust/fatcat-openapi2.yml')
-rw-r--r-- | rust/fatcat-openapi2.yml | 76 |
1 files changed, 46 insertions, 30 deletions
diff --git a/rust/fatcat-openapi2.yml b/rust/fatcat-openapi2.yml index 585932b3..f1b94234 100644 --- a/rust/fatcat-openapi2.yml +++ b/rust/fatcat-openapi2.yml @@ -38,29 +38,6 @@ x-entity-props: &ENTITYPROPS extra: type: object additionalProperties: {} -x-entity-edit-props: &ENTITYEDITPROPS - edit_id: - type: integer - example: 847 - format: int64 - ident: - type: string - example: "f1f046a3-45c9-4b99-adce-000000000001" - revision: - type: integer - example: 42 - format: int64 - redirect_ident: - type: string - example: "f1f046a3-45c9-4b99-adce-000000000002" - #format: uuid - editgroup_id: - type: integer - example: 16 - format: int64 - extra: - type: object - additionalProperties: {} definitions: @@ -196,7 +173,28 @@ definitions: - ident - editgroup_id properties: - <<: *ENTITYEDITPROPS + edit_id: + type: integer + example: 847 + format: int64 + ident: + type: string + example: "f1f046a3-45c9-4b99-adce-000000000001" + revision: + type: integer + example: 42 + format: int64 + redirect_ident: + type: string + example: "f1f046a3-45c9-4b99-adce-000000000002" + #format: uuid + editgroup_id: + type: integer + example: 16 + format: int64 + extra: + type: object + additionalProperties: {} editor: type: object required: @@ -305,7 +303,7 @@ paths: /creator: post: parameters: - - name: body + - name: entity in: body required: true schema: @@ -316,6 +314,24 @@ paths: schema: $ref: "#/definitions/entity_edit" <<: *ENTITYRESPONSES +# /creator/batch: +# post: +# parameters: +# - name: entity_list +# in: body +# required: true +# schema: +# type: array +# items: +# $ref: "#/definitions/creator_entity" +# responses: +# 201: +# description: Created Entities +# schema: +# type: array +# items: +# $ref: "#/definitions/entity_edit" +# <<: *ENTITYRESPONSES /creator/{id}: parameters: - name: id @@ -345,7 +361,7 @@ paths: /container: post: parameters: - - name: body + - name: entity in: body required: true schema: @@ -385,7 +401,7 @@ paths: /file: post: parameters: - - name: body + - name: entity in: body required: true schema: @@ -425,7 +441,7 @@ paths: /release: post: parameters: - - name: body + - name: entity in: body required: true schema: @@ -465,7 +481,7 @@ paths: /work: post: parameters: - - name: body + - name: entity in: body required: true schema: @@ -532,7 +548,7 @@ paths: /editgroup: post: parameters: - - name: body + - name: entity in: body required: true schema: |