TT Vapor API Todo Module Sequence

TT Vapor API Todo Module Sequence A sequence diagram generated by Archify. GET /todos index(req) Todo.query().all() SELECT * FROM todos Todo rows 200 + [Todo] POST /todos + JSON create(req) decode Todo.self todo.save(on: req.db) INSERT INTO todos 200 + Todo DELETE /todos/:todoID delete(req) Todo.find(todoID) DELETE FROM todos 200 OK / 404 Not Found List todos Create todo Delete todo Client · HTTP client · Sequence participant Client HTTP client Vapor Routes · routes.swift · Sequence participant Vapor Routes routes.swift TodoController · CRUD handlers · Sequence participant TodoController CRUD handlers Todo Model · Fluent Model + Content · Sequence participant Todo Model Fluent Model + Content Fluent ORM · query and persistence · Sequence participant Fluent ORM query and persistence PostgreSQL · todos table · Sequence participant PostgreSQL todos table Legend request return default message