You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: cmd/protoc-gen-openapi/examples/google/example/library/v1/openapi_fq_schema_naming.yaml
+13-13
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
openapi: 3.0.3
5
5
info:
6
-
title: LibraryService API
6
+
title: google.example.library.v1.LibraryService API
7
7
description: |-
8
8
This API represents a simple digital library. It lets you manage Shelf
9
9
resources and Book resources in the library. It defines the following
@@ -21,7 +21,7 @@ paths:
21
21
/v1/shelves:
22
22
get:
23
23
tags:
24
-
- LibraryService
24
+
- google.example.library.v1.LibraryService
25
25
description: |-
26
26
Lists shelves. The order is unspecified but deterministic. Newly created
27
27
shelves will not necessarily be added to the end of this list.
@@ -59,7 +59,7 @@ paths:
59
59
$ref: '#/components/schemas/google.rpc.Status'
60
60
post:
61
61
tags:
62
-
- LibraryService
62
+
- google.example.library.v1.LibraryService
63
63
description: Creates a shelf, and returns the new Shelf.
64
64
operationId: LibraryService_CreateShelf
65
65
requestBody:
@@ -84,7 +84,7 @@ paths:
84
84
/v1/shelves/{shelf}:
85
85
get:
86
86
tags:
87
-
- LibraryService
87
+
- google.example.library.v1.LibraryService
88
88
description: Gets a shelf. Returns NOT_FOUND if the shelf does not exist.
89
89
operationId: LibraryService_GetShelf
90
90
parameters:
@@ -109,7 +109,7 @@ paths:
109
109
$ref: '#/components/schemas/google.rpc.Status'
110
110
delete:
111
111
tags:
112
-
- LibraryService
112
+
- google.example.library.v1.LibraryService
113
113
description: Deletes a shelf. Returns NOT_FOUND if the shelf does not exist.
114
114
operationId: LibraryService_DeleteShelf
115
115
parameters:
@@ -132,7 +132,7 @@ paths:
132
132
/v1/shelves/{shelf}/books:
133
133
get:
134
134
tags:
135
-
- LibraryService
135
+
- google.example.library.v1.LibraryService
136
136
description: |-
137
137
Lists books in a shelf. The order is unspecified but deterministic. Newly
138
138
created books will not necessarily be added to the end of this list.
@@ -177,7 +177,7 @@ paths:
177
177
$ref: '#/components/schemas/google.rpc.Status'
178
178
post:
179
179
tags:
180
-
- LibraryService
180
+
- google.example.library.v1.LibraryService
181
181
description: Creates a book, and returns the new Book.
182
182
operationId: LibraryService_CreateBook
183
183
parameters:
@@ -209,7 +209,7 @@ paths:
209
209
/v1/shelves/{shelf}/books/{book}:
210
210
get:
211
211
tags:
212
-
- LibraryService
212
+
- google.example.library.v1.LibraryService
213
213
description: Gets a book. Returns NOT_FOUND if the book does not exist.
214
214
operationId: LibraryService_GetBook
215
215
parameters:
@@ -240,7 +240,7 @@ paths:
240
240
$ref: '#/components/schemas/google.rpc.Status'
241
241
put:
242
242
tags:
243
-
- LibraryService
243
+
- google.example.library.v1.LibraryService
244
244
description: |-
245
245
Updates a book. Returns INVALID_ARGUMENT if the name of the book
246
246
is non-empty and does not equal the existing name.
@@ -284,7 +284,7 @@ paths:
284
284
$ref: '#/components/schemas/google.rpc.Status'
285
285
delete:
286
286
tags:
287
-
- LibraryService
287
+
- google.example.library.v1.LibraryService
288
288
description: Deletes a book. Returns NOT_FOUND if the book does not exist.
289
289
operationId: LibraryService_DeleteBook
290
290
parameters:
@@ -313,7 +313,7 @@ paths:
313
313
/v1/shelves/{shelf}/books/{book}:move:
314
314
post:
315
315
tags:
316
-
- LibraryService
316
+
- google.example.library.v1.LibraryService
317
317
description: |-
318
318
Moves a book to another shelf, and returns the new book. The book
319
319
id of the new book may not be the same as the original book.
@@ -353,7 +353,7 @@ paths:
353
353
/v1/shelves/{shelf}:merge:
354
354
post:
355
355
tags:
356
-
- LibraryService
356
+
- google.example.library.v1.LibraryService
357
357
description: |-
358
358
Merges two shelves by adding all books from the shelf named
359
359
`other_shelf_name` to shelf `name`, and deletes
@@ -546,4 +546,4 @@ components:
546
546
description: A list of messages that carry the error details. There is a common set of message types for APIs to use.
547
547
description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).'
Copy file name to clipboardexpand all lines: cmd/protoc-gen-openapi/examples/tests/rpctypes/openapi_fq_schema_naming.yaml
+3-3
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,13 @@
3
3
4
4
openapi: 3.0.3
5
5
info:
6
-
title: Status API
6
+
title: tests.rpctypes.message.v1.Status API
7
7
version: 0.0.1
8
8
paths:
9
9
/v1/status:
10
10
get:
11
11
tags:
12
-
- Status
12
+
- tests.rpctypes.message.v1.Status
13
13
operationId: Status_GetStatus
14
14
responses:
15
15
"200":
@@ -51,4 +51,4 @@ components:
51
51
description: A list of messages that carry the error details. There is a common set of message types for APIs to use.
52
52
description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).'
0 commit comments