Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
- incorrect syntax in 132 create.
  • Loading branch information
toumorokoshi committed Nov 6, 2024
1 parent a3dd318 commit eae0fd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 81 deletions.
10 changes: 6 additions & 4 deletions aep/general/0133/aep.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ rpc CreateBook(CreateBookRequest) returns (Book) {

{% tab oas %}

{% sample '../oas.yaml', '/publishers/{publisher_id}/books:' %}
{% sample '../oas.yaml', '$.paths./publishers/{publisher}/books.post' %}

{% endtabs %}

Expand Down Expand Up @@ -110,9 +110,9 @@ message CreateBookRequest {

{% tab oas %}

- The request body **must** be the resource being created.
{% sample '../oas.yaml', '$.paths./publishers/{publisher}/books.post.requestBody' %}

{% sample '../oas.yaml', 'book:' %}
- The request body **must** be the resource being created.

{% endtabs %}

Expand Down Expand Up @@ -164,7 +164,9 @@ publishers/012345678-abcd-cdef/books/12341234-5678-abcd

{% tab oas %}

- The `id` is a query parameter on the request URI.
{% sample '../oas.yaml', '$.paths./publishers/{publisher}/books.post.requestBody' %}

- The `id` field **must** be a query parameter on the request.

{% endtabs %}

Expand Down
77 changes: 0 additions & 77 deletions aep/general/oas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ paths:
- in: query
name: id
required: true
schema: {}
type: string
requestBody:
content:
Expand All @@ -121,7 +120,6 @@ paths:
- in: path
name: isbn
required: true
schema: {}
type: string
responses:
'200':
Expand All @@ -136,12 +134,10 @@ paths:
- in: query
name: max_page_size
required: true
schema: {}
type: integer
- in: query
name: page_token
required: true
schema: {}
type: string
responses:
'200':
Expand All @@ -160,7 +156,6 @@ paths:
- in: query
name: id
required: true
schema: {}
type: string
requestBody:
content:
Expand All @@ -181,7 +176,6 @@ paths:
- in: path
name: publisher
required: true
schema: {}
type: string
responses:
'200':
Expand All @@ -192,7 +186,6 @@ paths:
- in: path
name: publisher
required: true
schema: {}
type: string
responses:
'200':
Expand All @@ -206,27 +199,6 @@ paths:
- in: path
name: publisher
required: true
schema: {}
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/publisher'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/publisher'
description: Successful response
put:
parameters:
- in: path
name: publisher
required: true
schema: {}
type: string
requestBody:
content:
Expand All @@ -247,17 +219,14 @@ paths:
- in: path
name: publisher
required: true
schema: {}
type: string
- in: query
name: max_page_size
required: true
schema: {}
type: integer
- in: query
name: page_token
required: true
schema: {}
type: string
responses:
'200':
Expand All @@ -280,12 +249,10 @@ paths:
- in: path
name: publisher
required: true
schema: {}
type: string
- in: query
name: id
required: true
schema: {}
type: string
requestBody:
content:
Expand All @@ -306,12 +273,10 @@ paths:
- in: path
name: publisher
required: true
schema: {}
type: string
- in: path
name: book
required: true
schema: {}
type: string
responses:
'200':
Expand All @@ -322,12 +287,10 @@ paths:
- in: path
name: publisher
required: true
schema: {}
type: string
- in: path
name: book
required: true
schema: {}
type: string
responses:
'200':
Expand All @@ -341,37 +304,10 @@ paths:
- in: path
name: publisher
required: true
schema: {}
type: string
- in: path
name: book
required: true
schema: {}
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/book'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/book'
description: Successful response
put:
parameters:
- in: path
name: publisher
required: true
schema: {}
type: string
- in: path
name: book
required: true
schema: {}
type: string
requestBody:
content:
Expand All @@ -392,22 +328,18 @@ paths:
- in: path
name: publisher
required: true
schema: {}
type: string
- in: path
name: book
required: true
schema: {}
type: string
- in: query
name: max_page_size
required: true
schema: {}
type: integer
- in: query
name: page_token
required: true
schema: {}
type: string
responses:
'200':
Expand All @@ -426,17 +358,14 @@ paths:
- in: path
name: publisher
required: true
schema: {}
type: string
- in: path
name: book
required: true
schema: {}
type: string
- in: query
name: id
required: true
schema: {}
type: string
requestBody:
content:
Expand All @@ -457,17 +386,14 @@ paths:
- in: path
name: publisher
required: true
schema: {}
type: string
- in: path
name: book
required: true
schema: {}
type: string
- in: path
name: book-edition
required: true
schema: {}
type: string
responses:
'200':
Expand All @@ -478,17 +404,14 @@ paths:
- in: path
name: publisher
required: true
schema: {}
type: string
- in: path
name: book
required: true
schema: {}
type: string
- in: path
name: book-edition
required: true
schema: {}
type: string
responses:
'200':
Expand Down

0 comments on commit eae0fd4

Please sign in to comment.