Skip to content

Commit

Permalink
chore(pipeline): update hub-stats endpoint (#338)
Browse files Browse the repository at this point in the history
Because

- We should use hyphen in the API path.

This commit

- Updates hub-stats endpoint.

---------

Co-authored-by: droplet-bot <[email protected]>
  • Loading branch information
donch1989 and droplet-bot authored May 15, 2024
1 parent 0100938 commit 3040092
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion openapiv2/vdp/service.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ consumes:
produces:
- application/json
paths:
/v1beta/hub_stats:
/v1beta/hub-stats:
get:
summary: Get hub status
description: Return the stats of the hub
Expand Down
5 changes: 1 addition & 4 deletions vdp/pipeline/v1beta/pipeline.proto
Original file line number Diff line number Diff line change
Expand Up @@ -346,17 +346,14 @@ message Trace {
}

// GetHubStatsRequest represents a request to get hub stats.
message GetHubStatsRequest {

}
message GetHubStatsRequest {}

// GetHubStatsResponse represents a response to get hub stats.
message GetHubStatsResponse {
// Total number of public pipelines.
int32 number_of_public_pipelines = 1;
// Total number of featured pipelines.
int32 number_of_featured_pipelines = 2;

}

// Pipeline releases contain the version control information of a pipeline.
Expand Down
2 changes: 1 addition & 1 deletion vdp/pipeline/v1beta/pipeline_public_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ service PipelinePublicService {
//
// Return the stats of the hub
rpc GetHubStats(GetHubStatsRequest) returns (GetHubStatsResponse) {
option (google.api.http) = {get: "/v1beta/hub_stats"};
option (google.api.http) = {get: "/v1beta/hub-stats"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {tags: "Pipeline"};
}

Expand Down

0 comments on commit 3040092

Please sign in to comment.