Skip to content

Commit a41d3c6

Browse files
author
GLOBAL-BANK
committed
#-(openapi
1 parent fe98416 commit a41d3c6

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.postman/api

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
2+
apis[] = {"apiId":"83bb80f9-8f24-4f53-ada8-73f898c07412"}
3+
configVersion = 1.0.0
4+
type = api
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
2+
configVersion = 1.1.0
3+
type = apiEntityData
4+
5+
[config]
6+
id = 83bb80f9-8f24-4f53-ada8-73f898c07412
7+
8+
[config.relations]
9+
10+
[config.relations.collections]
11+
rootDirectory = postman/collections
12+
13+
[config.relations.collections.metaData]
14+
15+
[config.relations.apiDefinition]
16+
files[] = {"path":"index.proto","metaData":{}}
17+
18+
[config.relations.apiDefinition.metaData]
19+
type = proto:3
20+
rootFiles[] = index.proto

index.proto

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
syntax = "proto3";
2+
3+
package com.book;
4+
5+
message Book {
6+
int64 isbn = 1;
7+
string title = 2;
8+
string author = 3;
9+
}
10+
11+
message GetBookRequest {
12+
int64 isbn = 1;
13+
}
14+
15+
message GetBookViaAuthor {
16+
string author = 1;
17+
}
18+
19+
service BookService {
20+
rpc GetBook (GetBookRequest) returns (Book) {}
21+
rpc GetBooksViaAuthor (GetBookViaAuthor) returns (stream Book) {}
22+
rpc GetGreatestBook (stream GetBookRequest) returns (Book) {}
23+
rpc GetBooks (stream GetBookRequest) returns (stream Book) {}
24+
}

0 commit comments

Comments
 (0)