1
1
//! Health Endpoints
2
2
use poem_openapi:: { param:: Query , OpenApi } ;
3
3
4
- use crate :: service:: common:: { auth:: api_key :: InternalApiKeyAuthorization , tags:: ApiTags } ;
4
+ use crate :: service:: common:: { auth:: none :: NoAuthorization , tags:: ApiTags } ;
5
5
6
6
mod inspection_get;
7
7
mod live_get;
@@ -28,7 +28,7 @@ impl HealthApi {
28
28
method = "get" ,
29
29
operation_id = "healthStarted"
30
30
) ]
31
- async fn started_get ( & self , _auth : InternalApiKeyAuthorization ) -> started_get:: AllResponses {
31
+ async fn started_get ( & self , _auth : NoAuthorization ) -> started_get:: AllResponses {
32
32
started_get:: endpoint ( ) . await
33
33
}
34
34
@@ -46,7 +46,7 @@ impl HealthApi {
46
46
method = "get" ,
47
47
operation_id = "healthReady"
48
48
) ]
49
- async fn ready_get ( & self , _auth : InternalApiKeyAuthorization ) -> ready_get:: AllResponses {
49
+ async fn ready_get ( & self , _auth : NoAuthorization ) -> ready_get:: AllResponses {
50
50
ready_get:: endpoint ( ) . await
51
51
}
52
52
@@ -59,7 +59,7 @@ impl HealthApi {
59
59
/// *This endpoint is for internal use of the service deployment infrastructure.
60
60
/// It may not be exposed publicly. Refer to []*
61
61
#[ oai( path = "/v1/health/live" , method = "get" , operation_id = "healthLive" ) ]
62
- async fn live_get ( & self , _auth : InternalApiKeyAuthorization ) -> live_get:: AllResponses {
62
+ async fn live_get ( & self , _auth : NoAuthorization ) -> live_get:: AllResponses {
63
63
live_get:: endpoint ( ) . await
64
64
}
65
65
@@ -84,7 +84,7 @@ impl HealthApi {
84
84
/// Enable or disable Verbose Query inspection in the logs. Used to find query
85
85
/// performance issues.
86
86
query_inspection : Query < Option < inspection_get:: DeepQueryInspectionFlag > > ,
87
- _auth : InternalApiKeyAuthorization ,
87
+ _auth : NoAuthorization ,
88
88
) -> inspection_get:: AllResponses {
89
89
inspection_get:: endpoint ( log_level. 0 , query_inspection. 0 ) . await
90
90
}
0 commit comments