summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rust/TODO6
-rw-r--r--rust/fatcat-openapi2.yml8
2 files changed, 7 insertions, 7 deletions
diff --git a/rust/TODO b/rust/TODO
index 23885dc2..99d6a1bd 100644
--- a/rust/TODO
+++ b/rust/TODO
@@ -6,9 +6,9 @@ x iron-slog
x integrate API server example into a main.rs
x get and post for creators
x cleanup pooled database: https://github.com/diesel-rs/diesel/pull/1466
-- clean up blasse error handling a bit
-- add 404s to gets
-- wow. fix a bunch of api schema names ("FindASingleContainerByExternalIdentifer")
+x clean up blasse error handling a bit
+x add 404s to gets
+x wow. fix a bunch of api schema names ("FindASingleContainerByExternalIdentifer")
- creators, releases, works, files (?)
- one-to-many relationship (eg, works)
- many-to-many relationship (eg, creators)
diff --git a/rust/fatcat-openapi2.yml b/rust/fatcat-openapi2.yml
index 1b671b76..195f23fe 100644
--- a/rust/fatcat-openapi2.yml
+++ b/rust/fatcat-openapi2.yml
@@ -163,6 +163,10 @@ x-entity-responses: &ENTITYRESPONSES
description: Bad Request
schema:
$ref: "#/definitions/error"
+ 404:
+ description: Not Found
+ schema:
+ $ref: "#/definitions/error"
default:
description: Generic Error
schema:
@@ -208,10 +212,6 @@ paths:
description: Found Entity
schema:
$ref: "#/definitions/creator_entity"
- 404:
- description: no such creator
- schema:
- $ref: "#/definitions/error"
<<: *ENTITYRESPONSES
/container:
post: