diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-13 19:36:25 +0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-13 19:36:25 +0800 |
commit | 061e66c4c41063e6b7321f1f421b5152e9e5a84d (patch) | |
tree | 8b6729d9144841c69aac0df1c4a5394d3d43e3b6 /fatcat-openapi2.yml | |
parent | c6901d5f895889ad25dd2db9a41db11480899a1c (diff) | |
download | fatcat-061e66c4c41063e6b7321f1f421b5152e9e5a84d.tar.gz fatcat-061e66c4c41063e6b7321f1f421b5152e9e5a84d.zip |
schema tweaks, and rust codegen
Diffstat (limited to 'fatcat-openapi2.yml')
-rw-r--r-- | fatcat-openapi2.yml | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/fatcat-openapi2.yml b/fatcat-openapi2.yml index f7deb6d4..e452e945 100644 --- a/fatcat-openapi2.yml +++ b/fatcat-openapi2.yml @@ -135,14 +135,14 @@ definitions: type: integer example: 1048576 format: int64 - sha1: - type: string - #format: custom - example: "f013d66c7f6817d08b7eb2a93e6d0440c1f3e7f8" md5: type: string #format: custom example: "d41efcc592d1e40ac13905377399eb9b" + sha1: + type: string + #format: custom + example: "f013d66c7f6817d08b7eb2a93e6d0440c1f3e7f8" sha256: type: string #format: custom @@ -673,7 +673,7 @@ paths: 200: description: Deleted Edit schema: - $ref: "#/definitions/entity_edit" + $ref: "#/definitions/success" <<: *ENTITYRESPONSES /creator: post: @@ -863,7 +863,7 @@ paths: items: $ref: "#/definitions/release_entity" <<: *ENTITYRESPONSES - /release/{id}/redirects: + /creator/{id}/redirects: parameters: - name: id in: path @@ -871,8 +871,8 @@ paths: required: true get: tags: # TAGLINE - - releases # TAGLINE - operationId: "get_release_redirects" + - creators # TAGLINE + operationId: "get_creator_redirects" responses: 200: description: Found Entity Redirects @@ -937,7 +937,7 @@ paths: 200: description: Deleted Edit schema: - $ref: "#/definitions/entity_edit" + $ref: "#/definitions/success" <<: *ENTITYRESPONSES /file: post: @@ -1129,11 +1129,11 @@ paths: tags: # TAGLINE - files # TAGLINE parameters: - - name: sha1 + - name: md5 in: query type: string required: false - - name: md5 + - name: sha1 in: query type: string required: false @@ -1183,7 +1183,7 @@ paths: 200: description: Deleted Edit schema: - $ref: "#/definitions/entity_edit" + $ref: "#/definitions/success" <<: *ENTITYRESPONSES /release: post: @@ -1460,7 +1460,7 @@ paths: 200: description: Deleted Edit schema: - $ref: "#/definitions/entity_edit" + $ref: "#/definitions/success" <<: *ENTITYRESPONSES /work: post: @@ -1700,7 +1700,7 @@ paths: 200: description: Deleted Edit schema: - $ref: "#/definitions/entity_edit" + $ref: "#/definitions/success" <<: *ENTITYRESPONSES /editor/{id}: parameters: |