Skip to content

Commit a67c122

Browse files
authored
Add about endpoint (#17)
* Add about endpoint * Add google folder to namespace packages
1 parent 4135941 commit a67c122

File tree

5 files changed

+430
-2
lines changed

5 files changed

+430
-2
lines changed

ansys/api/additive/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.2
1+
1.2.3

ansys/api/additive/v0/about.proto

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
syntax = "proto3";
2+
3+
package ansys.api.additive.v0.about;
4+
5+
option csharp_namespace = "Ansys.Api.Additive";
6+
import "google/api/annotations.proto";
7+
import "google/protobuf/empty.proto";
8+
9+
10+
// The greeting service definition.
11+
service About {
12+
rpc About (google.protobuf.Empty) returns (AboutReply) {
13+
option (google.api.http) = {
14+
get: "/about"
15+
};
16+
}
17+
}
18+
19+
message AboutReply {
20+
map<string, string> metadata = 1;
21+
}

google/api/annotations.proto

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Copyright (c) 2015, Google Inc.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.api;
18+
19+
import "google/api/http.proto";
20+
import "google/protobuf/descriptor.proto";
21+
22+
option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
23+
option java_multiple_files = true;
24+
option java_outer_classname = "AnnotationsProto";
25+
option java_package = "com.google.api";
26+
option objc_class_prefix = "GAPI";
27+
28+
extend google.protobuf.MethodOptions {
29+
// See `HttpRule`.
30+
HttpRule http = 72295728;
31+
}

0 commit comments

Comments
 (0)