Commit 14c600b 1 parent fe52c14 commit 14c600b Copy full SHA for 14c600b
File tree 4 files changed +5
-10
lines changed
4 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,7 @@ Create methods are specified using the following pattern:
25
25
26
26
{% tab proto %}
27
27
28
- ```proto
29
- rpc CreateBook(CreateBookRequest) returns (Book) {
30
- option (google.api.http) = {
31
- post: "/v1/{parent=publishers/*}/books"
32
- body: "book"
33
- };
34
- option (google.api.method_signature) = "parent,book";
35
- }
36
- ```
28
+ {% sample '../example.proto' , 'rpc CreateBook' %}
37
29
38
30
- The RPC's name **must** begin with the word `Create`. The remainder of the
39
31
RPC name **should** be the singular form of the resource being created.
@@ -53,7 +45,7 @@ rpc CreateBook(CreateBookRequest) returns (Book) {
53
45
{% tab oas %}
54
46
55
47
```http
56
- POST /v1/publishers/{publisher}/books?id=foo HTTP/2
48
+ POST /v1/publishers/{publisher}/books?id={book} HTTP/2
57
49
Host: bookstore.example.com
58
50
Accept: application/json
59
51
{
Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ slug: create
5
5
created : 2023-03-08
6
6
placement :
7
7
category : standard-methods
8
+ order : 30
Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ slug: update
5
5
created : 2023-01-22
6
6
placement :
7
7
category : standard-methods
8
+ order : 40
Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ slug: delete
5
5
created : 2024-02-11
6
6
placement :
7
7
category : standard-methods
8
+ order : 60
You can’t perform that action at this time.
0 commit comments