Skip to content

Commit 04d62f4

Browse files
authored
updating aep-lib-go (#74)
picking up updates to kebab/camel casing, to update the aeps examples. disabling CI for the api-linter, but that will be re-added once the linter supports the new best practice (underscores in the path elements).
1 parent 900a643 commit 04d62f4

File tree

8 files changed

+747
-765
lines changed

8 files changed

+747
-765
lines changed

example/bookstore/v1/bookstore.pb.go

Lines changed: 594 additions & 592 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/bookstore/v1/bookstore.proto

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ service Bookstore {
265265
message Book {
266266
option (google.api.resource) = {
267267
type: "bookstore.example.com/book",
268-
pattern: [ "publishers/{publisher}/books/{book}" ],
268+
pattern: [ "publishers/{publisher_id}/books/{book_id}" ],
269269
plural: "books",
270270
singular: "book"
271271
};
@@ -303,7 +303,7 @@ message BookEdition {
303303
option (google.api.resource) = {
304304
type: "bookstore.example.com/book-edition",
305305
pattern: [
306-
"publishers/{publisher}/books/{book}/editions/{book-edition}"
306+
"publishers/{publisher_id}/books/{book_id}/editions/{book_edition_id}"
307307
],
308308
plural: "book-editions",
309309
singular: "book-edition"
@@ -323,7 +323,7 @@ message BookEdition {
323323
message Isbn {
324324
option (google.api.resource) = {
325325
type: "bookstore.example.com/isbn",
326-
pattern: [ "isbns/{isbn}" ],
326+
pattern: [ "isbns/{isbn_id}" ],
327327
plural: "isbns",
328328
singular: "isbn"
329329
};
@@ -336,7 +336,7 @@ message Isbn {
336336
message Item {
337337
option (google.api.resource) = {
338338
type: "bookstore.example.com/item",
339-
pattern: [ "stores/{store}/items/{item}" ],
339+
pattern: [ "stores/{store_id}/items/{item_id}" ],
340340
plural: "items",
341341
singular: "item"
342342
};
@@ -358,7 +358,7 @@ message Item {
358358
message Publisher {
359359
option (google.api.resource) = {
360360
type: "bookstore.example.com/publisher",
361-
pattern: [ "publishers/{publisher}" ],
361+
pattern: [ "publishers/{publisher_id}" ],
362362
plural: "publishers",
363363
singular: "publisher"
364364
};
@@ -374,7 +374,7 @@ message Publisher {
374374
message Store {
375375
option (google.api.resource) = {
376376
type: "bookstore.example.com/store",
377-
pattern: [ "stores/{store}" ],
377+
pattern: [ "stores/{store_id}" ],
378378
plural: "stores",
379379
singular: "store"
380380
};

0 commit comments

Comments
 (0)