1
0
Fork 0
forked from lthn/blockchain
Commit graph

24 commits

Author SHA1 Message Date
snider
ef59026e39 adds POST block/template + POST block/submit 2025-10-17 21:13:46 +01:00
snider
0c76729d68 adds GET /info?flags=performance,total_coins
performance and chain statistics
2025-10-17 20:32:50 +01:00
snider
8934042913 adds GET block/height 2025-10-17 18:58:18 +01:00
snider
0ba4c334bb api pagination block?limit=20&offset=200&start=1337 2025-10-17 18:40:11 +01:00
snider
0c7c242d28 clang-tidy adjustments 2025-10-16 18:39:25 +01:00
snider
bfa73fd70f initializes oatpp environment in daemon and removes redundant initialization in ApiServer 2025-10-16 18:33:06 +01:00
snider
09c987581b refactors API server initialization and shutdown process, removes conditional API enablement 2025-10-16 18:27:59 +01:00
snider
35f9045937 refactors block and transaction DTOs to models, updates references in controllers 2025-10-16 17:17:18 +01:00
snider
e538e6492a renames api lib from lethean-api to api-server and updates related configurations in CMakeLists.txt 2025-10-16 17:07:18 +01:00
snider
53f266cbee renames ApiCoreInfoComponent to ApiCoreInfo and updates references in ApiServer 2025-10-16 17:06:57 +01:00
snider
c6e98b6aa9 adds Block-by-Hash and Block-by-ID controllers with enhanced block retrieval functionality 2025-10-16 16:08:28 +01:00
snider
668a747325 adds blockcontroller / chain data 2025-10-16 14:10:04 +01:00
snider
518e002cb3 adds swagger assets + OpenAPI spec to {pkg}/share/lthn_api/res/* + {pkg}/share/lthn_api/oas-3.0.0.json 2025-10-16 12:24:19 +01:00
snider
d154992233 Update API server description and add server endpoints in ApiServer configuration 2025-10-15 22:28:55 +01:00
snider
d7066c2220 Add command line options for API server host and port configuration 2025-10-15 22:28:49 +01:00
snider
4474eebe52 Update server address in ApiServer configuration to use 127.0.0.1 2025-10-15 21:28:38 +01:00
snider
3ac4f170d4 Refactor CMake configuration to link lthn_api library with daemon and update include directories 2025-10-15 20:59:18 +01:00
snider
3a2ccb55c6 Refactor ApiServer to manage server lifecycle with start, stop, and wait methods 2025-10-15 20:58:57 +01:00
snider
c250daf4ec Add ApiCoreInfoComponent and enhance BlockController for blockchain data retrieval 2025-10-11 23:35:07 +01:00
snider
0a2a965253 Fix block size and effective fee median values in BlockController 2025-10-11 12:41:18 +01:00
Snider
df17bf1247 DTOs for block and transaction details, Refactor API server
Replaces RootController and legacy info controller with new InfoController and BlockController, adds DTOs for block and transaction details, and restructures the API server to use modular components. Updates CMakeLists to include new sources and dependencies, and refactors main.cpp to use the new ApiServer entry point. Improves Swagger documentation and endpoint organization for better maintainability and extensibility.
2025-10-10 23:18:02 +01:00
Snider
4cfc57b1f1
Update src/api/controller/RootController.hpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-09 23:46:58 +01:00
Snider
bac3c459d2
Update src/api/ApiServer.hpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-09 23:46:45 +01:00
Snider
d78c6cecd8 Add initial Oatpp-based API server implementation
Introduces a new API module using Oatpp and Oatpp-Swagger, including controllers, DTOs, and server setup. Updates build scripts and dependencies to support the new API layer for Lethean, providing endpoints and Swagger documentation.
2025-10-09 13:44:34 +01:00