From 1080766f12ac63e9d62ed623ec2d8368b9c1c7ce Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 15 May 2018 22:10:05 -0700 Subject: basic error/response handling --- rust/TODO | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'rust/TODO') diff --git a/rust/TODO b/rust/TODO index 0c81c5ea..23885dc2 100644 --- a/rust/TODO +++ b/rust/TODO @@ -4,13 +4,22 @@ x re-generate OpenAPI => cargo swagger (docker) seems to only use latest x iron-slog x integrate API server example into a main.rs -- get and post for creators -- cleanup pooled database: https://github.com/diesel-rs/diesel/pull/1466 +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") +- creators, releases, works, files (?) +- one-to-many relationship (eg, works) +- many-to-many relationship (eg, creators) +- refactor handlers to have a proper Result<_,_> error-chain type, so I can use '?' +- copypasta a bunch of CRUD +- helper to calculate state of idents then: -- encode the remaining entities in SQL -- openapi for other entities (heavily templated) - +x encode the remaining entities in SQL +x openapi for other entities (heavily templated) +- figure out JSON(B) in both swagger and diesel later: - metrics, jwt, config, sentry, testing -- cgit v1.2.3