ribose 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +539 -970
- data/.sample.pryrc +4 -0
- data/CHANGELOG.md +5 -0
- data/README.md +539 -3
- data/bin/console +2 -5
- data/lib/ribose.rb +31 -1
- data/lib/ribose/actions.rb +10 -0
- data/lib/ribose/actions/all.rb +43 -0
- data/lib/ribose/actions/base.rb +11 -0
- data/lib/ribose/actions/create.rb +44 -0
- data/lib/ribose/actions/delete.rb +32 -0
- data/lib/ribose/actions/fetch.rb +44 -0
- data/lib/ribose/actions/update.rb +35 -0
- data/lib/ribose/app_data.rb +15 -0
- data/lib/ribose/app_relation.rb +12 -0
- data/lib/ribose/base.rb +48 -0
- data/lib/ribose/calendar.rb +22 -0
- data/lib/ribose/client.rb +31 -0
- data/lib/ribose/config.rb +21 -0
- data/lib/ribose/configuration.rb +25 -0
- data/lib/ribose/connection.rb +39 -0
- data/lib/ribose/connection_invitation.rb +51 -0
- data/lib/ribose/conversation.rb +87 -0
- data/lib/ribose/error.rb +30 -0
- data/lib/ribose/feed.rb +11 -0
- data/lib/ribose/file_uploader.rb +93 -0
- data/lib/ribose/join_space_request.rb +41 -0
- data/lib/ribose/leaderboard.rb +19 -0
- data/lib/ribose/member.rb +34 -0
- data/lib/ribose/message.rb +94 -0
- data/lib/ribose/profile.rb +56 -0
- data/lib/ribose/request.rb +122 -0
- data/lib/ribose/resource_helper.rb +81 -0
- data/lib/ribose/response/raise_error.rb +15 -0
- data/lib/ribose/rspec.rb +19 -0
- data/lib/ribose/session.rb +48 -0
- data/lib/ribose/setting.rb +16 -0
- data/lib/ribose/space.rb +30 -0
- data/lib/ribose/space_file.rb +49 -0
- data/lib/ribose/space_invitation.rb +70 -0
- data/lib/ribose/stream.rb +15 -0
- data/lib/ribose/user.rb +42 -0
- data/lib/ribose/version.rb +1 -1
- data/lib/ribose/widget.rb +11 -0
- data/lib/ribose/wiki.rb +80 -0
- data/ribose.gemspec +6 -0
- data/spec/fixtures/app_data.json +188 -0
- data/spec/fixtures/app_relation.json +19 -0
- data/spec/fixtures/app_relations.json +89 -0
- data/spec/fixtures/calendar.json +12 -0
- data/spec/fixtures/calendars.json +34 -0
- data/spec/fixtures/connection_invitation.json +26 -0
- data/spec/fixtures/connection_invitation_accepted.json +26 -0
- data/spec/fixtures/connection_invitations.json +28 -0
- data/spec/fixtures/connection_invitations_created.json +37 -0
- data/spec/fixtures/connection_suggestion.json +22 -0
- data/spec/fixtures/connections.json +28 -0
- data/spec/fixtures/conversation.json +26 -0
- data/spec/fixtures/conversation_created.json +31 -0
- data/spec/fixtures/conversations.json +34 -0
- data/spec/fixtures/empty.json +1 -0
- data/spec/fixtures/feeds.json +84 -0
- data/spec/fixtures/file_upload_prepared.json +17 -0
- data/spec/fixtures/file_uploaded.json +38 -0
- data/spec/fixtures/general_information.json +16 -0
- data/spec/fixtures/join_space_request_created.json +26 -0
- data/spec/fixtures/join_space_request_updated.json +25 -0
- data/spec/fixtures/join_space_requests.json +34 -0
- data/spec/fixtures/leaderboard.json +21 -0
- data/spec/fixtures/login.html +323 -0
- data/spec/fixtures/members.json +20 -0
- data/spec/fixtures/message.json +22 -0
- data/spec/fixtures/messages.json +24 -0
- data/spec/fixtures/ping.json +3 -0
- data/spec/fixtures/profile.json +10 -0
- data/spec/fixtures/sample.png +0 -0
- data/spec/fixtures/setting.json +16 -0
- data/spec/fixtures/settings.json +18 -0
- data/spec/fixtures/space.json +59 -0
- data/spec/fixtures/space_created.json +59 -0
- data/spec/fixtures/space_file.json +58 -0
- data/spec/fixtures/space_invitation.json +32 -0
- data/spec/fixtures/space_invitation_updated.json +35 -0
- data/spec/fixtures/space_invitations.json +34 -0
- data/spec/fixtures/space_mass_invitations.json +46 -0
- data/spec/fixtures/spaces.json +61 -0
- data/spec/fixtures/stream.json +176 -0
- data/spec/fixtures/user_activated.json +6 -0
- data/spec/fixtures/widgets.json +50 -0
- data/spec/fixtures/wiki.json +79 -0
- data/spec/fixtures/wikis.json +197 -0
- data/spec/ribose/actions/create_spec.rb +40 -0
- data/spec/ribose/actions/delete_spec.rb +24 -0
- data/spec/ribose/actions/fetch_spec.rb +32 -0
- data/spec/ribose/actions/update_spec.rb +36 -0
- data/spec/ribose/app_data_spec.rb +15 -0
- data/spec/ribose/app_relation_spec.rb +27 -0
- data/spec/ribose/calendar_spec.rb +50 -0
- data/spec/ribose/client_spec.rb +48 -0
- data/spec/ribose/config_spec.rb +41 -0
- data/spec/ribose/connection_invitation_spec.rb +79 -0
- data/spec/ribose/connection_spec.rb +26 -0
- data/spec/ribose/conversation_spec.rb +84 -0
- data/spec/ribose/error_spec.rb +67 -0
- data/spec/ribose/feed_spec.rb +14 -0
- data/spec/ribose/file_uploader_spec.rb +30 -0
- data/spec/ribose/join_space_request_spec.rb +70 -0
- data/spec/ribose/leaderboard_spec.rb +13 -0
- data/spec/ribose/member_spec.rb +16 -0
- data/spec/ribose/message_spec.rb +69 -0
- data/spec/ribose/profile_spec.rb +40 -0
- data/spec/ribose/request_spec.rb +66 -0
- data/spec/ribose/resource_helper_spec.rb +58 -0
- data/spec/ribose/session_spec.rb +46 -0
- data/spec/ribose/setting_spec.rb +40 -0
- data/spec/ribose/space_file_spec.rb +41 -0
- data/spec/ribose/space_invitation_spec.rb +117 -0
- data/spec/ribose/space_spec.rb +70 -0
- data/spec/ribose/stream_spec.rb +14 -0
- data/spec/ribose/user_spec.rb +48 -0
- data/spec/ribose/widget_spec.rb +14 -0
- data/spec/ribose/wiki_spec.rb +67 -0
- data/spec/spec_helper.rb +11 -0
- data/spec/support/fake_ribose_api.rb +431 -0
- data/spec/support/file_upload_stub.rb +76 -0
- metadata +190 -3
- data/spec/ribose_spec.rb +0 -4
@@ -0,0 +1,61 @@
|
|
1
|
+
{
|
2
|
+
"spaces":[
|
3
|
+
{
|
4
|
+
"id":"0e8d5c16-1a31-4df9-83d9-eeaa374d5adc",
|
5
|
+
"name":"Work",
|
6
|
+
"created_at": "2017-07-27T07:19:09.000+00:00",
|
7
|
+
"invite_access":"admins",
|
8
|
+
"space_category_id":null,
|
9
|
+
"visibility":"invisible",
|
10
|
+
"group_email":"work57",
|
11
|
+
"default_role_id":41592,
|
12
|
+
"join_requests_access":"disabled",
|
13
|
+
"active":true,
|
14
|
+
"description":"Client work related discussion",
|
15
|
+
"members_count":1,
|
16
|
+
"admin":true,
|
17
|
+
"invitable_roles":[
|
18
|
+
{
|
19
|
+
"id":41592,
|
20
|
+
"name":"Member",
|
21
|
+
"space_id":"123456789"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"id":41593,
|
25
|
+
"name":"Administrator",
|
26
|
+
"space_id":"123456789"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"id":41594,
|
30
|
+
"name":"Read only",
|
31
|
+
"space_id":"123456789"
|
32
|
+
}
|
33
|
+
],
|
34
|
+
"owner":true,
|
35
|
+
"read_only":false,
|
36
|
+
"role_name":"Administrator",
|
37
|
+
"allow_invite":true,
|
38
|
+
"joined_at": "2017-07-27T07:19:09.000+00:00",
|
39
|
+
"access":"private",
|
40
|
+
"publishable?":false,
|
41
|
+
"user":{
|
42
|
+
"id":"63116bd1-c08d-4a4d-8332-fcdaecb13e34",
|
43
|
+
"name":"Abu Nashir"
|
44
|
+
},
|
45
|
+
"owned_roles":[
|
46
|
+
{
|
47
|
+
"id":41592,
|
48
|
+
"name":"Member"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"id":41593,
|
52
|
+
"name":"Administrator"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"id":41594,
|
56
|
+
"name":"Read only"
|
57
|
+
}
|
58
|
+
]
|
59
|
+
}
|
60
|
+
]
|
61
|
+
}
|
@@ -0,0 +1,176 @@
|
|
1
|
+
{
|
2
|
+
"total": 3,
|
3
|
+
"notifications": [
|
4
|
+
{
|
5
|
+
"data": [
|
6
|
+
{
|
7
|
+
"info": {
|
8
|
+
"action": "create",
|
9
|
+
"action_at": "2017-07-27T07:19:17.000+00:00",
|
10
|
+
"action_by": "Team Ribose",
|
11
|
+
"action_by_jid": "riboseteam@messaging.ribose.internal",
|
12
|
+
"action_by_id": "e674a27a-4bfe-5cb3-96a1-09a891db8422",
|
13
|
+
"app_name": "People",
|
14
|
+
"last_id": 1302172,
|
15
|
+
"exists": true,
|
16
|
+
"object": "John Doe",
|
17
|
+
"object_klass": "UserConnection",
|
18
|
+
"object_id": 10888,
|
19
|
+
"object_link": "",
|
20
|
+
"personal": true,
|
21
|
+
"space": null,
|
22
|
+
"space_id": null,
|
23
|
+
"space_object": null,
|
24
|
+
"space_exists": false,
|
25
|
+
"affected_user_is_member": null,
|
26
|
+
"affected_user_id": "63116bd1-c08d-4a4d-8332-fcdaecb13e34",
|
27
|
+
"affected_user": "John Doe",
|
28
|
+
"owner_type": null,
|
29
|
+
"owner_name": null,
|
30
|
+
"parent": null,
|
31
|
+
"target_type": "User",
|
32
|
+
"target_id": "63116bd1-c08d-4a4d-8332-fcdaecb13e34",
|
33
|
+
"trigger": "user_connection"
|
34
|
+
},
|
35
|
+
"link": {
|
36
|
+
"affected_user": "John Doe",
|
37
|
+
"affected_user_link": "/people/users/63116bd1-c08d-4a4d-8332-fcdaecb13e34"
|
38
|
+
}
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"id": 1302172
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"data": [
|
45
|
+
{
|
46
|
+
"info": {
|
47
|
+
"action": "create",
|
48
|
+
"action_at": "2017-07-27T07:19:09.000+00:00",
|
49
|
+
"action_by": "John Doe",
|
50
|
+
"action_by_jid": "c6fe2f942a69abad4bd7bdc90e58263e@messaging.ribose.internal",
|
51
|
+
"action_by_id": "63116bd1-c08d-4a4d-8332-fcdaecb13e34",
|
52
|
+
"app_name": "Calendar",
|
53
|
+
"last_id": 1302166,
|
54
|
+
"exists": true,
|
55
|
+
"object": "Work",
|
56
|
+
"object_klass": "IndigoAppCalendar::Calendar",
|
57
|
+
"object_id": 19707,
|
58
|
+
"object_link": "/#spaces/0e8d5c16-1a31-4df9-83d9-eeaa374d5adc/calendar/calendar/19707",
|
59
|
+
"personal": false,
|
60
|
+
"space": "Work",
|
61
|
+
"space_id": "0e8d5c16-1a31-4df9-83d9-eeaa374d5adc",
|
62
|
+
"space_object": {
|
63
|
+
"id": "0e8d5c16-1a31-4df9-83d9-eeaa374d5adc",
|
64
|
+
"name": "Work",
|
65
|
+
"created_at": "2017-07-27T07:19:09.000+00:00",
|
66
|
+
"invite_access": "admins",
|
67
|
+
"space_category_id": null,
|
68
|
+
"visibility": "invisible",
|
69
|
+
"group_email": "work57",
|
70
|
+
"default_role_id": 41592,
|
71
|
+
"join_requests_access": "disabled",
|
72
|
+
"active": true,
|
73
|
+
"description": "Client work related discussion",
|
74
|
+
"members_count": 1,
|
75
|
+
"admin": true,
|
76
|
+
"invitable_roles": [
|
77
|
+
{
|
78
|
+
"id": 41592,
|
79
|
+
"name": "Member",
|
80
|
+
"space_id": "0e8d5c16-1a31-4df9-83d9-eeaa374d5adc"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"id": 41593,
|
84
|
+
"name": "Administrator",
|
85
|
+
"space_id": "0e8d5c16-1a31-4df9-83d9-eeaa374d5adc"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"id": 41594,
|
89
|
+
"name": "Read only",
|
90
|
+
"space_id": "0e8d5c16-1a31-4df9-83d9-eeaa374d5adc"
|
91
|
+
}
|
92
|
+
],
|
93
|
+
"owner": true,
|
94
|
+
"read_only": false,
|
95
|
+
"role_name": "Administrator",
|
96
|
+
"allow_invite": true,
|
97
|
+
"joined_at": "2017-07-27T07:19:09.000+00:00",
|
98
|
+
"access": "private",
|
99
|
+
"publishable?": false,
|
100
|
+
"user": {
|
101
|
+
"id": "63116bd1-c08d-4a4d-8332-fcdaecb13e34",
|
102
|
+
"name": "John Doe"
|
103
|
+
},
|
104
|
+
"owned_roles": [
|
105
|
+
{
|
106
|
+
"id": 41592,
|
107
|
+
"name": "Member"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"id": 41593,
|
111
|
+
"name": "Administrator"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"id": 41594,
|
115
|
+
"name": "Read only"
|
116
|
+
}
|
117
|
+
]
|
118
|
+
},
|
119
|
+
"space_exists": true,
|
120
|
+
"affected_user_is_member": true,
|
121
|
+
"affected_user_id": null,
|
122
|
+
"affected_user": null,
|
123
|
+
"owner_type": null,
|
124
|
+
"owner_name": null,
|
125
|
+
"parent": null,
|
126
|
+
"target_type": "Space",
|
127
|
+
"target_id": "0e8d5c16-1a31-4df9-83d9-eeaa374d5adc",
|
128
|
+
"trigger": "calendar"
|
129
|
+
},
|
130
|
+
"link": ""
|
131
|
+
}
|
132
|
+
],
|
133
|
+
"id": 1302166
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"data": [
|
137
|
+
{
|
138
|
+
"info": {
|
139
|
+
"action": "create",
|
140
|
+
"action_at": "2017-07-27T07:18:17.000+00:00",
|
141
|
+
"action_by": "Team Ribose",
|
142
|
+
"action_by_jid": "riboseteam@messaging.ribose.internal",
|
143
|
+
"action_by_id": "e674a27a-4bfe-5cb3-96a1-09a891db8422",
|
144
|
+
"app_name": "",
|
145
|
+
"last_id": 1302146,
|
146
|
+
"exists": true,
|
147
|
+
"object": "To Connection",
|
148
|
+
"object_klass": "Invitation::ToConnection",
|
149
|
+
"object_id": 27688,
|
150
|
+
"object_link": "/#invitations/to_connection/27688",
|
151
|
+
"personal": true,
|
152
|
+
"space": null,
|
153
|
+
"space_id": null,
|
154
|
+
"space_object": null,
|
155
|
+
"space_exists": false,
|
156
|
+
"affected_user_is_member": null,
|
157
|
+
"affected_user_id": null,
|
158
|
+
"affected_user": null,
|
159
|
+
"owner_type": null,
|
160
|
+
"owner_name": null,
|
161
|
+
"parent": null,
|
162
|
+
"target_type": "User",
|
163
|
+
"target_id": "63116bd1-c08d-4a4d-8332-fcdaecb13e34",
|
164
|
+
"trigger": "invitation/to_connection"
|
165
|
+
},
|
166
|
+
"link": {
|
167
|
+
"locale_key": "notification.message.invitation/to_connection.accept.you",
|
168
|
+
"inviter_link": "/people/users/e674a27a-4bfe-5cb3-96a1-09a891db8422",
|
169
|
+
"inviter": "Team Ribose"
|
170
|
+
}
|
171
|
+
}
|
172
|
+
],
|
173
|
+
"id": 1302146
|
174
|
+
}
|
175
|
+
]
|
176
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"widgets": [
|
3
|
+
{
|
4
|
+
"id": 72148,
|
5
|
+
"owner_type": "User",
|
6
|
+
"type": "Widget::RssFeed",
|
7
|
+
"pane": 0,
|
8
|
+
"position": 0,
|
9
|
+
"owner_id": "63116bd1-c08d-4a4d-8332-fcdaecb13e34",
|
10
|
+
"status": "loaded",
|
11
|
+
"settings": null
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"id": 72149,
|
15
|
+
"owner_type": "User",
|
16
|
+
"type": "Widget::Weather",
|
17
|
+
"pane": 0,
|
18
|
+
"position": 1,
|
19
|
+
"owner_id": "63116bd1-c08d-4a4d-8332-fcdaecb13e34",
|
20
|
+
"status": "loaded",
|
21
|
+
"settings": {
|
22
|
+
"widget_id": 72149,
|
23
|
+
"type": "Setting::Widget::Weather"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"id": 72146,
|
28
|
+
"owner_type": "User",
|
29
|
+
"type": "Widget::Calendar",
|
30
|
+
"pane": 2,
|
31
|
+
"position": 0,
|
32
|
+
"owner_id": "63116bd1-c08d-4a4d-8332-fcdaecb13e34",
|
33
|
+
"status": "loaded",
|
34
|
+
"settings": null
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"id": 72147,
|
38
|
+
"owner_type": "User",
|
39
|
+
"type": "Widget::Notification",
|
40
|
+
"pane": 2,
|
41
|
+
"position": 1,
|
42
|
+
"owner_id": "63116bd1-c08d-4a4d-8332-fcdaecb13e34",
|
43
|
+
"status": "loaded",
|
44
|
+
"settings": {
|
45
|
+
"widget_id": 72147,
|
46
|
+
"type": "Setting::Widget::Notification"
|
47
|
+
}
|
48
|
+
}
|
49
|
+
]
|
50
|
+
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
{
|
2
|
+
"wiki_page": {
|
3
|
+
"id": 7678,
|
4
|
+
"name": "Wiki Page One",
|
5
|
+
"address": "wiki-page-one",
|
6
|
+
"created_at": "2017-11-08T07:33:25.000+00:00",
|
7
|
+
"updated_at": "2017-11-08T07:33:25.000+00:00",
|
8
|
+
"version": 1,
|
9
|
+
"allow_attachments": true,
|
10
|
+
"allow_comments": true,
|
11
|
+
"revision": 23,
|
12
|
+
"tag_list": [
|
13
|
+
"wiki",
|
14
|
+
"init"
|
15
|
+
],
|
16
|
+
"space_id": "52e47e18-9a9d-4663-94c5",
|
17
|
+
"attachments_listed": [],
|
18
|
+
"author_ids": [
|
19
|
+
"2970d105-5ccc"
|
20
|
+
],
|
21
|
+
"is_new_record": false,
|
22
|
+
"rendered_created_by": "2970d105-5ccc",
|
23
|
+
"rendered_updated_by": "2970d105-5ccc",
|
24
|
+
"allow_create": true,
|
25
|
+
"allow_edit": true,
|
26
|
+
"allow_update": true,
|
27
|
+
"allow_delete": true,
|
28
|
+
"allow_comment": true,
|
29
|
+
"allow_manage_permissions": true,
|
30
|
+
"history": {
|
31
|
+
"current_ver": 1,
|
32
|
+
"versions": [
|
33
|
+
{
|
34
|
+
"id": 1,
|
35
|
+
"updater_id": "2970d105-5ccc",
|
36
|
+
"updated_at": "2017-11-08T07:33:25.000+00:00"
|
37
|
+
}
|
38
|
+
]
|
39
|
+
},
|
40
|
+
"current_user": "2970d105-5ccc",
|
41
|
+
"related_users": {
|
42
|
+
"2970d105-5ccc": {
|
43
|
+
"id": "2970d105-5ccc",
|
44
|
+
"name": "John Doe",
|
45
|
+
"connected": true,
|
46
|
+
"mutual_spaces": [
|
47
|
+
"a7f7b94e-a007-4457-868f",
|
48
|
+
"a45387e2-a573-48ba",
|
49
|
+
"268b0407-c3a3-4aad-8693",
|
50
|
+
"52e47e18-9a9d-4663-94c5"
|
51
|
+
]
|
52
|
+
}
|
53
|
+
},
|
54
|
+
"encoded_rendered_content": "This%26nbsp%3Bis%26nbsp%3Bthe%26nbsp%3Bfirst%26nbsp%3Bwiki%26nbsp%3Bpage%26nbsp%3Bfor%26nbsp%3BRibose!Hello%2C%26nbsp%3B",
|
55
|
+
"comments": [],
|
56
|
+
"user": {
|
57
|
+
"id": "2970d105-5ccc",
|
58
|
+
"name": "John Doe",
|
59
|
+
"connected": true,
|
60
|
+
"mutual_spaces": [
|
61
|
+
"a7f7b94e-a007-4457-868f",
|
62
|
+
"a45387e2-a573-48ba",
|
63
|
+
"268b0407-c3a3-4aad-8693",
|
64
|
+
"52e47e18-9a9d-4663-94c5"
|
65
|
+
]
|
66
|
+
},
|
67
|
+
"updater": {
|
68
|
+
"id": "2970d105-5ccc",
|
69
|
+
"name": "John Doe",
|
70
|
+
"connected": true,
|
71
|
+
"mutual_spaces": [
|
72
|
+
"a7f7b94e-a007-4457-868f",
|
73
|
+
"a45387e2-a573-48ba",
|
74
|
+
"268b0407-c3a3-4aad-8693",
|
75
|
+
"52e47e18-9a9d-4663-94c5"
|
76
|
+
]
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
@@ -0,0 +1,197 @@
|
|
1
|
+
{
|
2
|
+
"wiki_pages": [
|
3
|
+
{
|
4
|
+
"id": 12345,
|
5
|
+
"name": "Wiki Page One",
|
6
|
+
"address": "wiki-page-one",
|
7
|
+
"created_at": "2017-11-08T07:33:25.000+00:00",
|
8
|
+
"updated_at": "2017-11-08T07:33:25.000+00:00",
|
9
|
+
"version": 1,
|
10
|
+
"allow_attachments": true,
|
11
|
+
"allow_comments": true,
|
12
|
+
"revision": 23,
|
13
|
+
"tag_list": [
|
14
|
+
"wiki",
|
15
|
+
"init"
|
16
|
+
],
|
17
|
+
"space_id": 123456,
|
18
|
+
"attachments_listed": [],
|
19
|
+
"author_ids": [
|
20
|
+
"2970d105-5ccc"
|
21
|
+
],
|
22
|
+
"is_new_record": false,
|
23
|
+
"rendered_created_by": "2970d105-5cc",
|
24
|
+
"rendered_updated_by": "2970d105-5ccc",
|
25
|
+
"allow_create": true,
|
26
|
+
"allow_edit": true,
|
27
|
+
"allow_update": true,
|
28
|
+
"allow_delete": true,
|
29
|
+
"allow_comment": true,
|
30
|
+
"allow_manage_permissions": true,
|
31
|
+
"history": {
|
32
|
+
"current_ver": 1,
|
33
|
+
"versions": [
|
34
|
+
{
|
35
|
+
"id": 1,
|
36
|
+
"updater_id": "2970d105-5ccc",
|
37
|
+
"updated_at": "2017-11-08T07:33:25.000+00:00"
|
38
|
+
}
|
39
|
+
]
|
40
|
+
},
|
41
|
+
"current_user": "2970d105-5ccc",
|
42
|
+
"related_users": {
|
43
|
+
"2970d105-5ccc": {
|
44
|
+
"id": "2970d105-5ccc",
|
45
|
+
"name": "John Doe",
|
46
|
+
"connected": true,
|
47
|
+
"mutual_spaces": [
|
48
|
+
"2970d105-5ccc111",
|
49
|
+
"2970d105-5ccc111133"
|
50
|
+
]
|
51
|
+
}
|
52
|
+
},
|
53
|
+
"encoded_rendered_content": "This%26nbsp%3Bis%26nbsp%3Bthe%26nbsp%3Bfirst%26nbsp%3Bwiki%26nbsp%3Bpage%26nbsp%3Bfor%26nbsp%3BRibose!Hello%2C%26nbsp%3B",
|
54
|
+
"comments": [],
|
55
|
+
"user": {
|
56
|
+
"id": "2970d105-5ccc",
|
57
|
+
"name": "John Doe",
|
58
|
+
"connected": true,
|
59
|
+
"mutual_spaces": [
|
60
|
+
"a7f7b94e-a007-4457",
|
61
|
+
"a45387e2-a573-48ba"
|
62
|
+
]
|
63
|
+
},
|
64
|
+
"updater": {
|
65
|
+
"id": "2970d105-5ccc",
|
66
|
+
"name": "John Doe",
|
67
|
+
"connected": true,
|
68
|
+
"mutual_spaces": [
|
69
|
+
"a7f7b94e-a007-4457-868f",
|
70
|
+
"a45387e2-a573-48ba-8df",
|
71
|
+
"268b0407-c3a3-4aad-8693",
|
72
|
+
"52e47e18-9a9d-4663-94c5"
|
73
|
+
]
|
74
|
+
}
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"id": 456789,
|
78
|
+
"name": "Wiki Page Two",
|
79
|
+
"address": "page-two",
|
80
|
+
"created_at": "2017-11-08T07:34:23.000+00:00",
|
81
|
+
"updated_at": "2017-11-08T07:34:23.000+00:00",
|
82
|
+
"version": 1,
|
83
|
+
"allow_attachments": true,
|
84
|
+
"allow_comments": true,
|
85
|
+
"revision": 13,
|
86
|
+
"tag_list": [
|
87
|
+
"second-page",
|
88
|
+
"wiki"
|
89
|
+
],
|
90
|
+
"space_id": "2970d105-5ccc",
|
91
|
+
"attachments_listed": [],
|
92
|
+
"author_ids": [
|
93
|
+
"2970d105-5ccc"
|
94
|
+
],
|
95
|
+
"is_new_record": false,
|
96
|
+
"rendered_created_by": "2970d105-5ccc",
|
97
|
+
"rendered_updated_by": "2970d105-5ccc",
|
98
|
+
"allow_create": true,
|
99
|
+
"allow_edit": true,
|
100
|
+
"allow_update": true,
|
101
|
+
"allow_delete": true,
|
102
|
+
"allow_comment": true,
|
103
|
+
"allow_manage_permissions": true,
|
104
|
+
"history": {
|
105
|
+
"current_ver": 1,
|
106
|
+
"versions": [
|
107
|
+
{
|
108
|
+
"id": 1,
|
109
|
+
"updater_id": "2970d105-5ccc",
|
110
|
+
"updated_at": "2017-11-08T07:34:23.000+00:00"
|
111
|
+
}
|
112
|
+
]
|
113
|
+
},
|
114
|
+
"current_user": "2970d105-5ccc",
|
115
|
+
"related_users": {
|
116
|
+
"2970d105-5ccc-4a8c-b0c4-ec32d539a00a": {
|
117
|
+
"id": "2970d105-5ccc",
|
118
|
+
"name": "John Doe",
|
119
|
+
"connected": true,
|
120
|
+
"mutual_spaces": [
|
121
|
+
"a7f7b94e-a007--",
|
122
|
+
"a45387e2-a573-",
|
123
|
+
"268b0407-c3a3-",
|
124
|
+
"52e47e18-9a9d-"
|
125
|
+
]
|
126
|
+
}
|
127
|
+
},
|
128
|
+
"encoded_rendered_content": "This%26nbsp%3Bis%26nbsp%3Bthe%26nbsp%3Bsecond%26nbsp%3Bpage%26nbsp%3Bfor%26nbsp%3Bthe%26nbsp%3BWiki",
|
129
|
+
"comments": [],
|
130
|
+
"user": {
|
131
|
+
"id": "2970d105-5ccc",
|
132
|
+
"name": "John Doe",
|
133
|
+
"connected": true,
|
134
|
+
"mutual_spaces": [
|
135
|
+
"a7f7b94e-a007-4457-",
|
136
|
+
"a45387e2-a573-48ba-",
|
137
|
+
"268b0407-c3a3-4aad-",
|
138
|
+
"52e47e18-9a9d-4663-"
|
139
|
+
]
|
140
|
+
},
|
141
|
+
"updater": {
|
142
|
+
"id": "2970d105-5ccc",
|
143
|
+
"name": "John Doe",
|
144
|
+
"connected": true,
|
145
|
+
"mutual_spaces": [
|
146
|
+
"a7f7b94e-a007-4457-5af319706ad5",
|
147
|
+
"a45387e2-a573-48ba-f1424d8a8ec9",
|
148
|
+
"268b0407-c3a3-4aad-fdba789f7f0d",
|
149
|
+
"52e47e18-9a9d-4663-abcb18fa783a"
|
150
|
+
]
|
151
|
+
}
|
152
|
+
}
|
153
|
+
],
|
154
|
+
"tags": {
|
155
|
+
"selected_tags": [],
|
156
|
+
"related_tags": [
|
157
|
+
"wiki",
|
158
|
+
"init",
|
159
|
+
"second-page"
|
160
|
+
],
|
161
|
+
"all_tags": [
|
162
|
+
{
|
163
|
+
"name": "wiki",
|
164
|
+
"count": 2,
|
165
|
+
"height": 3
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"name": "init",
|
169
|
+
"count": 1,
|
170
|
+
"height": 2
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"name": "second-page",
|
174
|
+
"count": 1,
|
175
|
+
"height": 2
|
176
|
+
}
|
177
|
+
]
|
178
|
+
},
|
179
|
+
"allow_create": true,
|
180
|
+
"recent_activity": [
|
181
|
+
{
|
182
|
+
"date": "Wednesday, November 08, 2017",
|
183
|
+
"links": [
|
184
|
+
{
|
185
|
+
"id": 7679,
|
186
|
+
"name": "Page two",
|
187
|
+
"path": "page-two"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"id": 7678,
|
191
|
+
"name": "Wiki Page One",
|
192
|
+
"path": "wiki-page-one"
|
193
|
+
}
|
194
|
+
]
|
195
|
+
}
|
196
|
+
]
|
197
|
+
}
|