mirror of
https://github.com/pi-hole/FTL.git
synced 2025-12-24 14:18: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}`.
|
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.
|
The `database_error` with message `UNIQUE constraint failed` error indicates that this list already exists.
|
||||||
|
parameters:
|
||||||
|
- $ref: 'lists.yaml#/components/parameters/listtype'
|
||||||
requestBody:
|
requestBody:
|
||||||
description: Callback payload
|
description: Callback payload
|
||||||
content:
|
content:
|
||||||
@@ -268,7 +270,6 @@ components:
|
|||||||
post:
|
post:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: 'lists.yaml#/components/schemas/address_maybe_array'
|
- $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/comment'
|
||||||
- $ref: 'lists.yaml#/components/schemas/groups'
|
- $ref: 'lists.yaml#/components/schemas/groups'
|
||||||
- $ref: 'lists.yaml#/components/schemas/enabled'
|
- $ref: 'lists.yaml#/components/schemas/enabled'
|
||||||
|
|||||||
Reference in New Issue
Block a user