Releases: KaioFelps/samambaia-api
Releases · KaioFelps/samambaia-api
[email protected]
Added
- introduced Announcements domain;
- DB model, entity and domain entity;
- CRUD services;
- Sea Repository;
- CRUD services factories;
- DTOs, presenter and controller;
- added CI automated tests + lint checks.
Changed
- added
SeaMapper
trait that defines the 4 most common methods a SEA-ORM mapper might have; - implemented
SeaMapper
for every mapper and fixed repositories broken method calls due to the mappers changes; - made Sea repositories constructors synchronous;
- made services factories synchronous;
- move repositories dependencies out of
Box
in every service; - group services by domain;
- group factories by domain;
- rename the system to Samambaia.
Changed
- database performance has been improved by 92%:
- database connection are now created only once at the application bootstrap;
- repositories now holds a reference for the database connection, instead of an owned connection;
- factories now requires a reference to a
SeaService
(database connection) in order to instantiate the
repositories, and thus the services; - controllers can now retrieve a reference to the
SeaService
struct by using theactix_web::web::Data
extractor; they must use it for executing the services factories.
[email protected]
[email protected]
- Updates outdated dependencies and fixed breaking changes
- Updated Validator crate and fixed new regex path format at
dtos/create-user
anddtos/update-user.rs
- Changed
from_fn
import fromactix_web_lab
toactix_web
crate on every controller & authentication middleware - Added a full authentication middleware (that does not require
from_fn
)
- Updated Validator crate and fixed new regex path format at
[email protected]
[email protected]
- Fixes
update
method from free badges controller
[email protected]
[email protected]
- adds free badges table at the database + orm entities + domain entity;
- adds free badges services (create, edit, delete, fetch many);
- adds free badges dtos (create and update);
- adds free badges controller + routes;
- registers free badges controller to api routes.
[email protected]
[email protected]
- adds Article Tags DTOs
- adds Article Tags Presenter
- adds Article Tags Controller
- registers article tags controller to api routes
[email protected]
First release
Starts using releases for managing the fansite versioning.
Features
This release is launching the following features of the fansite system:
- Users CRUD
- Team roles CRUD
- Team users CRUD
- Article tags CRUD
- Articles CRUD
- Comments CRUD
- Comment reports CRUD