bark-rest 0.2.1

a REST server built on top of the bark-wallet crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use bark_rest::ApiDoc;
use utoipa::OpenApi;

fn main() {
	// Generate the OpenAPI specification
	let openapi = ApiDoc::openapi();

	// Convert to pretty-printed JSON
	let json = serde_json::to_string_pretty(&openapi)
		.expect("Failed to serialize OpenAPI spec to JSON");

	// Print to stdout
	println!("{}", json);
}