Major refactor #141
@ -60,7 +60,7 @@ most important change points.
|
||||
- DTOs live under `OF DL.Core/Models/Dtos/` and mirror API response JSON.
|
||||
- Entities live under `OF DL.Core/Models/Entities/` and represent the internal domain used by download logic.
|
||||
- Mappers in `OF DL.Core/Models/Mappers/` convert DTOs into entities to isolate API changes from downstream logic.
|
||||
- Non-DTO/Entity models are grouped by concern under `OF DL.Core/Models/Api/`, `Auth/`, `Config/`, `Downloads/`,
|
||||
- Non-DTO/Entity models are grouped by concern under `OF DL.Core/Models/OfdlApi/`, `Auth/`, `Config/`, `Downloads/`,
|
||||
and `Startup/`.
|
||||
- Classes in `OF DL.Core/Models/OfdlApi/` mirror request and response JOSN OF DL APIs (custom and gitea)
|
||||
- Classes in `OF DL.Core/Models/Config/` are used for reading and storing application configuration
|
||||
@ -133,7 +133,8 @@ Environment variables used by auth:
|
||||
fallback to local `rules.json` in the current working directory. The repo ships `OF DL/rules.json` as the default
|
||||
rules file.
|
||||
- Cache durations: 15 minutes for remote rules, 5 minutes for local rules.
|
||||
- `DynamicRules` shape is defined in `OF DL.Core/Models/Api/DynamicRules.cs` and includes `app-token`, `static_param`,
|
||||
- `DynamicRules` shape is defined in `OF DL.Core/Models/OfdlApi/DynamicRules.cs` and includes `app-token`,
|
||||
`static_param`,
|
||||
`prefix`, `suffix`, `checksum_constant`, and `checksum_indexes`.
|
||||
|
||||
Signature algorithm in `GetDynamicHeaders`:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user