[Web] Added spam-score api docs (#3608)

This commit is contained in:
Timo N 2020-06-12 07:26:48 +02:00 committed by GitHub
parent 0c626c66ac
commit 97e5d31dd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -831,6 +831,7 @@ paths:
type: number type: number
type: object type: object
summary: Create mailbox summary: Create mailbox
/api/v1/add/oauth2-client: /api/v1/add/oauth2-client:
post: post:
responses: responses:
@ -4417,12 +4418,34 @@ paths:
examples: examples:
response: response:
value: value:
- frame: s - type: success
mailbox: leon@mailcow.tld log:
value: '5' - ratelimit
- frame: s - edit
mailbox: lisa@mailcow.tld - mailbox
value: '3' - object:
- info@domain.tld
rl_value: "10"
rl_frame: h
msg:
- rl_saved
- info@domain.tld
schema:
properties:
log:
description: contains request object
items: {}
type: array
msg:
items: {}
type: array
type:
enum:
- success
- danger
- error
type: string
type: object
description: OK description: OK
headers: {} headers: {}
tags: tags:
@ -4472,12 +4495,11 @@ paths:
- domain - domain
- object: - object:
- domain.tld - domain.tld
- rl_value: "50" rl_value: "50"
rl_frame: "h" rl_frame: "h"
msg: msg:
- rl_saved - rl_saved
- domain.tld - domain.tld
type: success
schema: schema:
properties: properties:
log: log:
@ -4847,6 +4869,61 @@ paths:
description: Using this endpoint you can get all Transport Maps. description: Using this endpoint you can get all Transport Maps.
operationId: Get Transport Maps operationId: Get Transport Maps
summary: Get Transport Maps summary: Get Transport Maps
/api/v1/edit/spam-score/:
post:
responses:
'401':
$ref: '#/components/responses/Unauthorized'
'200':
content:
application/json:
examples:
response:
value:
- type: success
log:
- mailbox
- edit
- spam_score
- username:
- info@domain.tld
spam_score: '8,15'
msg:
- mailbox_modified
- info@domain.tld
schema:
properties:
log:
description: contains request object
items: {}
type: array
msg:
items: {}
type: array
type:
enum:
- success
- danger
- error
type: string
type: object
description: OK
headers: {}
tags:
- Mailboxes
description: >-
Using this endpoint you can edit the spam filter score for a certain mailbox.
operationId: Edit mailbox spam filter score
requestBody:
content:
application/json:
schema:
example:
- items:
- info@domain.tld
attr:
spam_score: '8,15'
summary: Edit mailbox spam filter score
tags: tags:
- name: Domains - name: Domains