-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtechrepublic-post-structure.json
More file actions
118 lines (118 loc) · 3.22 KB
/
Copy pathtechrepublic-post-structure.json
File metadata and controls
118 lines (118 loc) · 3.22 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"title": "TechRepublic Post Structure",
"description": "JSON structure documentation for TechRepublic article/post objects returned by the WordPress REST API.",
"type": "object",
"fields": [
{
"name": "id",
"type": "integer",
"required": true,
"description": "Unique numeric identifier for the post. Used as the path parameter for single-post retrieval."
},
{
"name": "date",
"type": "string (date-time)",
"required": true,
"description": "Publication date in the site's timezone. ISO 8601 format."
},
{
"name": "date_gmt",
"type": "string (date-time)",
"required": false,
"description": "Publication date in UTC/GMT. ISO 8601 format."
},
{
"name": "modified",
"type": "string (date-time)",
"required": false,
"description": "Last modification date in the site's timezone."
},
{
"name": "slug",
"type": "string",
"required": true,
"description": "URL-safe alphanumeric slug for the post. Used in the post's permalink."
},
{
"name": "status",
"type": "string (enum)",
"required": true,
"description": "Publication status. Public API only returns 'publish' status posts.",
"values": ["publish", "future", "draft", "pending", "private"]
},
{
"name": "link",
"type": "string (uri)",
"required": true,
"description": "Full canonical URL to the post on TechRepublic.com."
},
{
"name": "title",
"type": "object",
"required": true,
"description": "Post title wrapper object.",
"fields": [
{
"name": "rendered",
"type": "string",
"description": "HTML-rendered title text. May contain HTML entities."
}
]
},
{
"name": "content",
"type": "object",
"required": true,
"description": "Post body content wrapper object.",
"fields": [
{
"name": "rendered",
"type": "string",
"description": "Full HTML-rendered body content of the post."
},
{
"name": "protected",
"type": "boolean",
"description": "True if the post content is behind a password."
}
]
},
{
"name": "excerpt",
"type": "object",
"required": false,
"description": "Post summary/excerpt wrapper object.",
"fields": [
{
"name": "rendered",
"type": "string",
"description": "HTML-rendered excerpt/summary."
}
]
},
{
"name": "author",
"type": "integer",
"required": true,
"description": "ID of the post's author. Use /users/{id} to fetch author details."
},
{
"name": "featured_media",
"type": "integer",
"required": false,
"description": "ID of the featured image/media. 0 if no featured media."
},
{
"name": "categories",
"type": "array[integer]",
"required": false,
"description": "Array of category term IDs assigned to this post."
},
{
"name": "tags",
"type": "array[integer]",
"required": false,
"description": "Array of tag term IDs assigned to this post."
}
]
}