-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.json
68 lines (61 loc) · 1.63 KB
/
api.json
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
{
"$schema": "https://json.schemastore.org/apibuilder.json",
"name": "tjas",
"description": "Wordpress backend which serves https://tjas.nl",
"imports": [
{ "uri": "https://app.apibuilder.io/iruoy/common/latest/service.json" }
],
"enums": {
"post_status": {
"description": "The publication status of a post",
"values": [
{ "name": "publish" },
{ "name": "future" },
{ "name": "draft" },
{ "name": "pending" },
{ "name": "private" },
{ "name": "trash" },
{ "name": "auto-draft" },
{ "name": "inherit" }
]
}
},
"models": {
"post": {
"description": "A generic post of Wordpress",
"fields": [
{ "name": "id", "type": "integer" },
{ "name": "date", "type": "date-iso8601" },
{ "name": "status", "type": "post_status" },
{ "name": "link", "type": "string" },
{ "name": "title", "type": "post_title" },
{ "name": "excerpt", "type": "post_excerpt" }
]
},
"post_title": {
"description": "The title of a Wordpress post",
"fields": [{ "name": "rendered", "type": "string" }]
},
"post_excerpt": {
"description": "The excerpt of a Wordpress post",
"fields": [{ "name": "rendered", "type": "string" }]
}
},
"resources": {
"post": {
"path": "",
"operations": [
{
"method": "GET",
"path": "/tribe_events",
"description": "Events which all members of Tjas can join",
"responses": {
"200": {
"type": "[post]"
}
}
}
]
}
}
}