Commit Graph

29 Commits

Author SHA1 Message Date
Lee Smet
1388935e35 Fix debug typo in API
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-10-31 12:26:02 +01:00
Lee Smet
aa5ffaf39c Remove unused imports in api rpc layer
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-10-07 17:29:22 +02:00
Lee Smet
2f8b74bc63 Drop unused TopicInfo struct
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-10-07 16:55:52 +02:00
Lee Smet
a76bfc0eb3 Format mycelium-api
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-09-19 11:24:40 +02:00
Lee Smet
1ae9c4c5d8 Add proxy API methods to JSONRPC API
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-09-19 11:24:40 +02:00
Lee Smet
71242918fe Improve input format for proxy connect API endpoint
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-09-19 11:24:40 +02:00
Lee Smet
c4f96b8e58 Add proxy API endpoints
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-09-19 11:24:40 +02:00
Lee Smet
9af09b5271 Fix #665: Don't error in popMessage if there is no message
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-09-08 14:58:21 +02:00
Lee Smet
b9ebb0b98d Format API rpc/message.rs
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-09-08 14:40:03 +02:00
Lee Smet
1420affc75 Clean up code
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-07-15 11:52:59 +02:00
Lee Smet
4e923ca59b Run cargo fmt
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-04-24 14:23:15 +02:00
Lee Smet
0b39b8459b Fix push message debug line
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-04-24 14:23:15 +02:00
Lee Smet
296552230c Add topic related API methods
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-04-24 14:23:15 +02:00
Lee Smet
77e00b01e2 Fix build if message feature is disabled
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-04-24 14:23:15 +02:00
Lee Smet
7541b2655e Initial openrpc API implementation
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-04-24 14:23:15 +02:00
Lee Smet
5bbbe6a794 Add NoRoute API handler
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-04-24 14:23:15 +02:00
Lee Smet
3925fe2b22 Add API handler to list queried routes
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-04-24 14:23:15 +02:00
Lee Smet
f0597df711 Fix API path segment capture for new axum version
In the axum upgrade from v0.7.x to v0.8.x, there was a breaking change
to the way captures in a route segment are declared. The old behavior
now panics.

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-02-19 10:34:47 +01:00
Iwan BK
78dcb1a8f2 fix various clippy warnings 2024-12-26 10:49:29 +01:00
Maxime Van Hees
b1dbba96e1 Tables for peers and routes with pagination and sorting 2024-08-26 13:18:25 +02:00
Maxime Van Hees
189286e45a Added node public key to /api/v1/admin endpoint 2024-08-26 13:18:25 +02:00
Florian Klink
e4d7be8556 mycelium-api: use log fields
This makes it easier to filter for certain fields.
2024-07-31 12:18:06 +02:00
Maxime Van Hees
167b9e7728 Changed 'infinite' string to a constant 2024-06-05 23:30:42 +02:00
Maxime Van Hees
673f935e6a Added deserialization tests for Metric and Route 2024-06-05 17:15:06 +02:00
Maxime Van Hees
d0e3fa0d76 Removed unused import 2024-06-05 15:34:26 +02:00
Maxime Van Hees
b86d5ba054 Listing selected and fallback routes with CLI (table and json format) 2024-06-05 15:26:30 +02:00
Maxime Van Hees
a38dbfefa4 API functions for peers (list, add, remove) with CLI 2024-06-04 14:59:06 +02:00
Maxime Van Hees
2ce576093d added api endpoint to get public key associated with an IP 2024-05-31 13:42:21 +02:00
Maxime Van Hees
73d3b1bf95 extracted api into mycelium-api crate 2024-05-31 09:34:12 +02:00