public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
[Web] Added spam-score api docs (#3608)
97e5d31d
data/web/api/openapi.yaml | 95 ++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 86 insertions(+), 9 deletions(-)
Diff
diff --git a/data/web/api/openapi.yaml b/data/web/api/openapi.yaml
index 4c4cf888..c6834d72 100644
--- a/data/web/api/openapi.yaml
+++ b/data/web/api/openapi.yaml
@@ -831,6 +831,7 @@ paths:
type: number
type: object
summary: Create mailbox
+
/api/v1/add/oauth2-client:
post:
responses:
@@ -4417,12 +4418,34 @@ paths:
examples:
response:
value:
- - frame: s
- mailbox: [email protected]
- value: '5'
- - frame: s
- mailbox: [email protected]
- value: '3'
+ - type: success
+ log:
+ - ratelimit
+ - edit
+ - mailbox
+ - object:
+ - [email protected]
+ rl_value: "10"
+ rl_frame: h
+ msg:
+ - rl_saved
+ - [email protected]
+ 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:
@@ -4472,12 +4495,11 @@ paths:
- domain
- object:
- domain.tld
- - rl_value: "50"
- rl_frame: "h"
+ rl_value: "50"
+ rl_frame: "h"
msg:
- rl_saved
- domain.tld
- type: success
schema:
properties:
log:
@@ -4847,6 +4869,61 @@ paths:
description: Using this endpoint you can get all Transport Maps.
operationId: 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:
+ - [email protected]
+ spam_score: '8,15'
+ msg:
+ - mailbox_modified
+ - [email protected]
+ 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:
+ - [email protected]
+ attr:
+ spam_score: '8,15'
+ summary: Edit mailbox spam filter score
tags:
- name: Domains