mirror of
https://github.com/pi-hole/FTL.git
synced 2025-12-20 05:48:24 +00:00
Merge pull request #2649 from pi-hole/fix/post_lists
Fix POST /lists example
This commit is contained in:
@@ -143,6 +143,8 @@ components:
|
||||
On success, a new resource is created at `/lists/{list}`.
|
||||
|
||||
The `database_error` with message `UNIQUE constraint failed` error indicates that this list already exists.
|
||||
parameters:
|
||||
- $ref: 'lists.yaml#/components/parameters/listtype'
|
||||
requestBody:
|
||||
description: Callback payload
|
||||
content:
|
||||
@@ -268,7 +270,6 @@ components:
|
||||
post:
|
||||
allOf:
|
||||
- $ref: 'lists.yaml#/components/schemas/address_maybe_array'
|
||||
- $ref: 'lists.yaml#/components/schemas/type'
|
||||
- $ref: 'lists.yaml#/components/schemas/comment'
|
||||
- $ref: 'lists.yaml#/components/schemas/groups'
|
||||
- $ref: 'lists.yaml#/components/schemas/enabled'
|
||||
|
||||
Reference in New Issue
Block a user