Skip to content

Commit 14c600b

Browse files
authored
fix: minor updates (#249)
some minor updates, mostly with using the proto/ openapi shared example instead of hand-written ones.
1 parent fe52c14 commit 14c600b

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

aep/general/0133/aep.md.j2

+2-10
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,7 @@ Create methods are specified using the following pattern:
2525

2626
{% tab proto %}
2727

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' %}
3729

3830
- The RPC's name **must** begin with the word `Create`. The remainder of the
3931
RPC name **should** be the singular form of the resource being created.
@@ -53,7 +45,7 @@ rpc CreateBook(CreateBookRequest) returns (Book) {
5345
{% tab oas %}
5446

5547
```http
56-
POST /v1/publishers/{publisher}/books?id=foo HTTP/2
48+
POST /v1/publishers/{publisher}/books?id={book} HTTP/2
5749
Host: bookstore.example.com
5850
Accept: application/json
5951
{

aep/general/0133/aep.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ slug: create
55
created: 2023-03-08
66
placement:
77
category: standard-methods
8+
order: 30

aep/general/0134/aep.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ slug: update
55
created: 2023-01-22
66
placement:
77
category: standard-methods
8+
order: 40

aep/general/0135/aep.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ slug: delete
55
created: 2024-02-11
66
placement:
77
category: standard-methods
8+
order: 60

0 commit comments

Comments
 (0)