summaryrefslogtreecommitdiff
path: root/src/docs/api/entities/post.pug
blob: 954f1727174baf5be146d44b9806e1fb27e64203 (plain)
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
extend ../../BASE

block title
	| Entity: Post

block content
	h1 Post
	p 投稿を表します。

	section
		h2 Properties
		table.entity
			thead: tr
				td Name
				td Type
				td Description
			tbody
				tr.nullable.optional
					td app
					td: a(href='./app', target='_blank') App
					td 投稿したアプリ
				tr.nullable
					td app_id
					td ID
					td 投稿したアプリのID
				tr
					td created_at
					td Date
					td 投稿日時
				tr
					td id
					td ID
					td 投稿ID
				tr.optional
					td is_liked
					td Boolean
					td いいね したかどうか
				tr
					td likes_count
					td Number
					td いいね数
				tr.nullable.optional
					td media_ids
					td ID[]
					td 添付されたメディアのIDの配列
				tr.nullable.optional
					td media
					td: a(href='./drive-file', target='_blank') DriveFile[]
					td 添付されたメディアの配列
				tr
					td replies_count
					td Number
					td 返信数
				tr.optional
					td reply
					td: a(href='./post', target='_blank') Post
					td 返信先の投稿
				tr.nullable
					td reply_id
					td ID
					td 返信先の投稿のID
				tr.optional
					td repost
					td: a(href='./post', target='_blank') Post
					td Repostした投稿
				tr
					td repost_count
					td Number
					td Repostされた数
				tr.nullable
					td repost_id
					td ID
					td Repostした投稿のID
				tr.nullable
					td text
					td String
					td 本文
				tr.optional
					td user
					td: a(href='./user', target='_blank') User
					td 投稿者
				tr
					td user_id
					td ID
					td 投稿者のID

	section
		h2 Example
		pre: code.
			{
				"created_at": "2016-12-10T00:28:50.114Z",
				"media_ids": null,
				"reply_id": "584a16b15860fc52320137e3",
				"repost_id": null,
				"text": "小日向美穂だぞ!",
				"user_id": "5848bf7764e572683f4402f8",
				"app_id": null,
				"likes_count": 1,
				"replies_count": 1,
				"id": "584b4c42d8e5186f8f755d0c",
				"user": {
					"birthday": null,
					"created_at": "2016-12-08T02:03:35.332Z",
					"bio": "女が嫌いです、女性は好きです",
					"followers_count": 11,
					"following_count": 11,
					"links": null,
					"location": "",
					"name": "女が嫌い",
					"posts_count": 26,
					"likes_count": 2,
					"liked_count": 20,
					"username": "onnnagakirai",
					"id": "5848bf7764e572683f4402f8",
					"avatar_url": "https://file.himasaku.net/5848c0ec64e572683f4402fc",
					"banner_url": "https://file.himasaku.net/5848c12864e572683f4402fd",
					"is_following": true,
					"is_followed": true
				},
				"reply": {
					"created_at": "2016-12-09T02:28:01.563Z",
					"media_ids": null,
					"reply_id": "5849d35e547e4249be329884",
					"repost_id": null,
					"text": "アイコン小日向美穂?",
					"user_id": "57d01a501fdf2d07be417afe",
					"app_id": null,
					"replies_count": 1,
					"id": "584a16b15860fc52320137e3",
					"user": {
						"birthday": null,
						"created_at": "2016-09-07T13:46:56.605Z",
						"bio": "どうすれば君だけのために生きていけるの",
						"followers_count": 51,
						"following_count": 97,
						"links": null,
						"location": "川崎",
						"name": "きな子",
						"posts_count": 4813,
						"username": "syuilo",
						"likes_count": 3141,
						"liked_count": 750,
						"id": "57d01a501fdf2d07be417afe",
						"avatar_url": "https://file.himasaku.net/583ddc6e64df272771f74c1a",
						"banner_url": "https://file.himasaku.net/584bfc82d8e5186f8f755ec5"
					}
				},
				"is_liked": true
			}