Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,186 changes: 594 additions & 592 deletions example/bookstore/v1/bookstore.pb.go

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions example/bookstore/v1/bookstore.proto
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ service Bookstore {
message Book {
option (google.api.resource) = {
type: "bookstore.example.com/book",
pattern: [ "publishers/{publisher}/books/{book}" ],
pattern: [ "publishers/{publisher_id}/books/{book_id}" ],
plural: "books",
singular: "book"
};
Expand Down Expand Up @@ -303,7 +303,7 @@ message BookEdition {
option (google.api.resource) = {
type: "bookstore.example.com/book-edition",
pattern: [
"publishers/{publisher}/books/{book}/editions/{book-edition}"
"publishers/{publisher_id}/books/{book_id}/editions/{book_edition_id}"
],
plural: "book-editions",
singular: "book-edition"
Expand All @@ -323,7 +323,7 @@ message BookEdition {
message Isbn {
option (google.api.resource) = {
type: "bookstore.example.com/isbn",
pattern: [ "isbns/{isbn}" ],
pattern: [ "isbns/{isbn_id}" ],
plural: "isbns",
singular: "isbn"
};
Expand All @@ -336,7 +336,7 @@ message Isbn {
message Item {
option (google.api.resource) = {
type: "bookstore.example.com/item",
pattern: [ "stores/{store}/items/{item}" ],
pattern: [ "stores/{store_id}/items/{item_id}" ],
plural: "items",
singular: "item"
};
Expand All @@ -358,7 +358,7 @@ message Item {
message Publisher {
option (google.api.resource) = {
type: "bookstore.example.com/publisher",
pattern: [ "publishers/{publisher}" ],
pattern: [ "publishers/{publisher_id}" ],
plural: "publishers",
singular: "publisher"
};
Expand All @@ -374,7 +374,7 @@ message Publisher {
message Store {
option (google.api.resource) = {
type: "bookstore.example.com/store",
pattern: [ "stores/{store}" ],
pattern: [ "stores/{store_id}" ],
plural: "stores",
singular: "store"
};
Expand Down
Loading