Add swagger for validator-api (#1239)
* validator-api: add swagger openapi * Lock file
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
use rocket::fairing::AdHoc;
|
||||
use rocket_okapi::openapi_get_routes;
|
||||
use std::time::Duration;
|
||||
|
||||
pub(crate) mod local_guard;
|
||||
@@ -18,7 +19,7 @@ pub(crate) fn stage_full() -> AdHoc {
|
||||
AdHoc::on_ignite("Node Status API Stage", |rocket| async {
|
||||
rocket.mount(
|
||||
"/v1/status",
|
||||
routes![
|
||||
openapi_get_routes![
|
||||
routes::mixnode_report,
|
||||
routes::gateway_report,
|
||||
routes::mixnode_uptime_history,
|
||||
@@ -40,7 +41,7 @@ pub(crate) fn stage_minimal() -> AdHoc {
|
||||
AdHoc::on_ignite("Node Status API Stage", |rocket| async {
|
||||
rocket.mount(
|
||||
"/v1/status",
|
||||
routes![
|
||||
openapi_get_routes![
|
||||
routes::get_mixnode_status,
|
||||
routes::get_mixnode_stake_saturation,
|
||||
routes::get_mixnode_inclusion_probability,
|
||||
|
||||
Reference in New Issue
Block a user