2022-03-31 08:48:50 -07:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-02-02 17:15:17 -08:00
|
|
|
|
2022-03-31 08:48:50 -07:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
|
|
package testing.options.v1;
|
|
|
|
|
|
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
|
|
|
|
|
|
option go_package = "github.com/hashicorp/boundary/internal/gen/testing/protooptions;protooptions";
|
2022-05-04 11:10:21 -04:00
|
|
|
|
2022-03-31 08:48:50 -07:00
|
|
|
// The test service definition. This is just a service that can be used to
|
|
|
|
|
// test options applied to services.
|
|
|
|
|
service TestService {
|
|
|
|
|
rpc TestMethod(TestMethodRequest) returns (TestMethodResponse) {
|
|
|
|
|
option (google.api.http) = {
|
|
|
|
|
get: "/v1/test/{id}"
|
|
|
|
|
response_body: "item"
|
|
|
|
|
additional_bindings {get: "/v2/test"}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// The request message.
|
|
|
|
|
message TestMethodRequest {
|
|
|
|
|
string id = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// The response message.
|
|
|
|
|
message TestMethodResponse {
|
|
|
|
|
string item = 1;
|
|
|
|
|
}
|