mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 22:24:08 +08:00
settings schema swagger
This commit is contained in:
+28
-2
@@ -150,14 +150,22 @@ paths:
|
||||
description: Settings
|
||||
responses:
|
||||
200:
|
||||
description: OK
|
||||
description: Get Setting
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/definitions/Setting'
|
||||
put:
|
||||
tags:
|
||||
- Settings
|
||||
description: Settings
|
||||
responses:
|
||||
204:
|
||||
description: OK
|
||||
description: Updated Setting
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/definitions/Setting'
|
||||
|
||||
|
||||
|
||||
@@ -212,3 +220,21 @@ definitions:
|
||||
type: string
|
||||
user_id:
|
||||
type: string
|
||||
Setting:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
moderation:
|
||||
type: string
|
||||
enum:
|
||||
- pre
|
||||
- post
|
||||
created_at:
|
||||
type: string
|
||||
format: date-time
|
||||
description: Creation Date-Time
|
||||
updated_at:
|
||||
type: string
|
||||
format: date-time
|
||||
description: Updated Date-Time
|
||||
|
||||
Reference in New Issue
Block a user