Skip to content

Commit

Permalink
fix: ensure the POST API responses are always JSON
Browse files Browse the repository at this point in the history
Refs: RW-831
  • Loading branch information
orakili committed Jul 1, 2024
1 parent ab84339 commit 28c0c0e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ reliefweb_post_api.post:
- DELETE
requirements:
_access: 'TRUE'
_format: 'json'
resource: '^[a-z][a-z_-]+[a-z]$'
uuid: '^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$'

Expand All @@ -24,4 +25,5 @@ reliefweb_post_api.schema:
- GET
requirements:
_access: 'TRUE'
_format: 'json'
schema: '^[a-z][a-z_-]+[a-z]\.json$'

0 comments on commit 28c0c0e

Please sign in to comment.