Skip to content

Commit

Permalink
addressing feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
toumorokoshi committed Aug 15, 2024
1 parent 37a29d7 commit 76dc06b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions aep/general/0134/aep.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Update methods are specified using the following pattern:
- The method **must** support partial resource update, and the HTTP verb
**must** be `PATCH`.
- If the resources take long than is reasonable for a regular API request, the
API **should** use a [long-runing-operation](/long-running-operations).
API **should** use a [long-running-operation](/long-running-operations).

{% tab proto %}

Expand Down Expand Up @@ -64,13 +64,15 @@ paths:
/v1/publishers/{publisher}/books:
patch:
summary: Update a book
operationId: publishers.book:create
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Book'
application/merge-patch+json:
schema:
$ref: '#/components/schemas/Book'
responses:
'200':
description: OK
Expand All @@ -80,7 +82,8 @@ paths:
$ref: '#/components/schemas/Book'
```

- The method **must** adhere to the behavior specified in [IETF 7396 - JSON Merge Patch](https://datatracker.ietf.org/doc/html/rfc7396).
- The method **must** adhere to the behavior specified in [IETF RFC 7396 - JSON Merge Patch](https://datatracker.ietf.org/doc/html/rfc7396).
- The method **must** support MIME types `application/merge-patch+json` to adhere to IETF RFC 7396, as well as `application/json` as a common generalization.

{% endtabs %}

Expand Down Expand Up @@ -208,7 +211,6 @@ paths:
/v1/publishers/{publisher}/books:
patch:
summary: Update a book
operationId: publishers.book:create
parameters:
- name: allow_missing
in: query
Expand Down

0 comments on commit 76dc06b

Please sign in to comment.