Skip to content

Commit 7a43e6f

Browse files
authored
fix(AIP-151): Use standard method for LRO example (#1185)
1 parent 4dc1f2d commit 7a43e6f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

aip/general/0151.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ Individual API methods that might take a significant amount of time to complete
2525
ultimate response message.
2626

2727
```proto
28-
// Write a book.
29-
rpc WriteBook(WriteBookRequest) returns (google.longrunning.Operation) {
28+
// Create a book.
29+
rpc CreateBook(CreateBookRequest) returns (google.longrunning.Operation) {
3030
option (google.api.http) = {
31-
post: "/v1/{parent=publishers/*}/books:write"
32-
body: "*"
31+
post: "/v1/{parent=publishers/*}/books"
32+
body: "book"
3333
};
3434
option (google.longrunning.operation_info) = {
35-
response_type: "WriteBookResponse"
36-
metadata_type: "WriteBookMetadata"
35+
response_type: "Book"
36+
metadata_type: "OperationMetadata"
3737
};
3838
}
3939
```

0 commit comments

Comments
 (0)