-
Notifications
You must be signed in to change notification settings - Fork 0
/
mastodon.kdl
71 lines (56 loc) · 1.17 KB
/
mastodon.kdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
responsible syntax=1
info {
title "Mastodon"
version "1"
}
struct "Application" {
name "string"
(?)website "httpURL"
vapid_key "string"
(?)client_id "string"
(?)client_secret "string"
}
struct "Err" {
error "string"
}
scope "/api/v1" {
* {
req {
mime "application/x-www-form-urlencoded"
}
res {
mime "application/json"
"422" "Err"
}
}
scope "/apps" {
POST {
req "struct" {
client_name "string"
redirect_uris "string"
(?)scopes "string"
(?)website "httpURL"
}
res {
"200" "Application"
}
}
GET "/verify_credentials" {
req {
header "Authorization" "string" pattern="^Bearer .+$"
}
res {
"200" "struct" {
name "string"
(?)website "httpURL"
vapid_key "string"
}
"401" "Err"
}
}
}
scope "/oauth" {
POST "/token" {
}
}
}