directus_sdk 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +185 -0
- data/Rakefile +8 -0
- data/directus_sdk.gemspec +46 -0
- data/docs/ActivityApi.md +59 -0
- data/docs/BookmarksApi.md +290 -0
- data/docs/FilesApi.md +277 -0
- data/docs/GetActivity.md +9 -0
- data/docs/GetActivityData.md +16 -0
- data/docs/GetActivityMeta.md +10 -0
- data/docs/GetBookmark.md +9 -0
- data/docs/GetBookmarks.md +9 -0
- data/docs/GetBookmarksData.md +14 -0
- data/docs/GetBookmarksMeta.md +14 -0
- data/docs/GetFile.md +9 -0
- data/docs/GetFiles.md +9 -0
- data/docs/GetFilesData.md +24 -0
- data/docs/GetGroup.md +9 -0
- data/docs/GetGroups.md +9 -0
- data/docs/GetGroupsData.md +9 -0
- data/docs/GetGroupsDataData.md +16 -0
- data/docs/GetGroupsDataMeta.md +11 -0
- data/docs/GetMessage.md +9 -0
- data/docs/GetMessages.md +9 -0
- data/docs/GetMessagesData.md +18 -0
- data/docs/GetMessagesMeta.md +13 -0
- data/docs/GetMessagesResponses.md +8 -0
- data/docs/GetPreferences.md +9 -0
- data/docs/GetPreferencesData.md +16 -0
- data/docs/GetPrivileges.md +9 -0
- data/docs/GetPrivilegesData.md +19 -0
- data/docs/GetPrivilegesForTable.md +9 -0
- data/docs/GetSettings.md +9 -0
- data/docs/GetSettingsData.md +9 -0
- data/docs/GetSettingsDataFiles.md +13 -0
- data/docs/GetSettingsDataGlobal.md +13 -0
- data/docs/GetSettingsFor.md +9 -0
- data/docs/GetSettingsForMeta.md +10 -0
- data/docs/GetTable.md +9 -0
- data/docs/GetTableColumn.md +9 -0
- data/docs/GetTableColumnData.md +23 -0
- data/docs/GetTableColumns.md +9 -0
- data/docs/GetTableColumnsData.md +27 -0
- data/docs/GetTableData.md +29 -0
- data/docs/GetTableRow.md +9 -0
- data/docs/GetTableRows.md +9 -0
- data/docs/GetTableRowsData.md +9 -0
- data/docs/GetTableRowsMeta.md +14 -0
- data/docs/GetTables.md +9 -0
- data/docs/GetTablesData.md +8 -0
- data/docs/GetTablesMeta.md +9 -0
- data/docs/GroupsApi.md +455 -0
- data/docs/MessagesApi.md +116 -0
- data/docs/PreferencesApi.md +135 -0
- data/docs/SettingsApi.md +175 -0
- data/docs/TablesApi.md +873 -0
- data/docs/UtilsApi.md +126 -0
- data/git_push.sh +55 -0
- data/lib/directus_sdk.rb +92 -0
- data/lib/directus_sdk/api/activity_api.rb +70 -0
- data/lib/directus_sdk/api/bookmarks_api.rb +288 -0
- data/lib/directus_sdk/api/files_api.rb +297 -0
- data/lib/directus_sdk/api/groups_api.rb +469 -0
- data/lib/directus_sdk/api/messages_api.rb +123 -0
- data/lib/directus_sdk/api/preferences_api.rb +151 -0
- data/lib/directus_sdk/api/settings_api.rb +183 -0
- data/lib/directus_sdk/api/tables_api.rb +890 -0
- data/lib/directus_sdk/api/utils_api.rb +134 -0
- data/lib/directus_sdk/api_client.rb +389 -0
- data/lib/directus_sdk/api_error.rb +38 -0
- data/lib/directus_sdk/configuration.rb +209 -0
- data/lib/directus_sdk/models/get_activity.rb +199 -0
- data/lib/directus_sdk/models/get_activity_data.rb +260 -0
- data/lib/directus_sdk/models/get_activity_meta.rb +206 -0
- data/lib/directus_sdk/models/get_bookmark.rb +197 -0
- data/lib/directus_sdk/models/get_bookmarks.rb +199 -0
- data/lib/directus_sdk/models/get_bookmarks_data.rb +242 -0
- data/lib/directus_sdk/models/get_bookmarks_meta.rb +252 -0
- data/lib/directus_sdk/models/get_file.rb +197 -0
- data/lib/directus_sdk/models/get_files.rb +199 -0
- data/lib/directus_sdk/models/get_files_data.rb +332 -0
- data/lib/directus_sdk/models/get_group.rb +197 -0
- data/lib/directus_sdk/models/get_groups.rb +197 -0
- data/lib/directus_sdk/models/get_groups_data.rb +199 -0
- data/lib/directus_sdk/models/get_groups_data_data.rb +260 -0
- data/lib/directus_sdk/models/get_groups_data_meta.rb +215 -0
- data/lib/directus_sdk/models/get_message.rb +197 -0
- data/lib/directus_sdk/models/get_messages.rb +199 -0
- data/lib/directus_sdk/models/get_messages_data.rb +278 -0
- data/lib/directus_sdk/models/get_messages_meta.rb +233 -0
- data/lib/directus_sdk/models/get_messages_responses.rb +190 -0
- data/lib/directus_sdk/models/get_preferences.rb +197 -0
- data/lib/directus_sdk/models/get_preferences_data.rb +260 -0
- data/lib/directus_sdk/models/get_privileges.rb +199 -0
- data/lib/directus_sdk/models/get_privileges_data.rb +287 -0
- data/lib/directus_sdk/models/get_privileges_for_table.rb +197 -0
- data/lib/directus_sdk/models/get_settings.rb +197 -0
- data/lib/directus_sdk/models/get_settings_data.rb +197 -0
- data/lib/directus_sdk/models/get_settings_data_files.rb +233 -0
- data/lib/directus_sdk/models/get_settings_data_global.rb +233 -0
- data/lib/directus_sdk/models/get_settings_for.rb +197 -0
- data/lib/directus_sdk/models/get_settings_for_meta.rb +206 -0
- data/lib/directus_sdk/models/get_table.rb +197 -0
- data/lib/directus_sdk/models/get_table_column.rb +197 -0
- data/lib/directus_sdk/models/get_table_column_data.rb +325 -0
- data/lib/directus_sdk/models/get_table_columns.rb +199 -0
- data/lib/directus_sdk/models/get_table_columns_data.rb +363 -0
- data/lib/directus_sdk/models/get_table_data.rb +379 -0
- data/lib/directus_sdk/models/get_table_row.rb +197 -0
- data/lib/directus_sdk/models/get_table_rows.rb +199 -0
- data/lib/directus_sdk/models/get_table_rows_data.rb +197 -0
- data/lib/directus_sdk/models/get_table_rows_meta.rb +242 -0
- data/lib/directus_sdk/models/get_tables.rb +199 -0
- data/lib/directus_sdk/models/get_tables_data.rb +188 -0
- data/lib/directus_sdk/models/get_tables_meta.rb +197 -0
- data/lib/directus_sdk/version.rb +15 -0
- data/spec/api/activity_api_spec.rb +46 -0
- data/spec/api/bookmarks_api_spec.rb +98 -0
- data/spec/api/files_api_spec.rb +105 -0
- data/spec/api/groups_api_spec.rb +143 -0
- data/spec/api/messages_api_spec.rb +58 -0
- data/spec/api/preferences_api_spec.rb +65 -0
- data/spec/api/settings_api_spec.rb +71 -0
- data/spec/api/tables_api_spec.rb +236 -0
- data/spec/api/utils_api_spec.rb +61 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/get_activity_data_spec.rb +90 -0
- data/spec/models/get_activity_meta_spec.rb +54 -0
- data/spec/models/get_activity_spec.rb +48 -0
- data/spec/models/get_bookmark_spec.rb +48 -0
- data/spec/models/get_bookmarks_data_spec.rb +78 -0
- data/spec/models/get_bookmarks_meta_spec.rb +78 -0
- data/spec/models/get_bookmarks_spec.rb +48 -0
- data/spec/models/get_file_spec.rb +48 -0
- data/spec/models/get_files_data_spec.rb +138 -0
- data/spec/models/get_files_spec.rb +48 -0
- data/spec/models/get_group_spec.rb +48 -0
- data/spec/models/get_groups_data_data_spec.rb +90 -0
- data/spec/models/get_groups_data_meta_spec.rb +60 -0
- data/spec/models/get_groups_data_spec.rb +48 -0
- data/spec/models/get_groups_spec.rb +48 -0
- data/spec/models/get_message_spec.rb +48 -0
- data/spec/models/get_messages_data_spec.rb +102 -0
- data/spec/models/get_messages_meta_spec.rb +72 -0
- data/spec/models/get_messages_responses_spec.rb +42 -0
- data/spec/models/get_messages_spec.rb +48 -0
- data/spec/models/get_preferences_data_spec.rb +90 -0
- data/spec/models/get_preferences_spec.rb +48 -0
- data/spec/models/get_privileges_data_spec.rb +108 -0
- data/spec/models/get_privileges_for_table_spec.rb +48 -0
- data/spec/models/get_privileges_spec.rb +48 -0
- data/spec/models/get_settings_data_files_spec.rb +72 -0
- data/spec/models/get_settings_data_global_spec.rb +72 -0
- data/spec/models/get_settings_data_spec.rb +48 -0
- data/spec/models/get_settings_for_meta_spec.rb +54 -0
- data/spec/models/get_settings_for_spec.rb +48 -0
- data/spec/models/get_settings_spec.rb +48 -0
- data/spec/models/get_table_column_data_spec.rb +132 -0
- data/spec/models/get_table_column_spec.rb +48 -0
- data/spec/models/get_table_columns_data_spec.rb +156 -0
- data/spec/models/get_table_columns_spec.rb +48 -0
- data/spec/models/get_table_data_spec.rb +168 -0
- data/spec/models/get_table_row_spec.rb +48 -0
- data/spec/models/get_table_rows_data_spec.rb +48 -0
- data/spec/models/get_table_rows_meta_spec.rb +78 -0
- data/spec/models/get_table_rows_spec.rb +48 -0
- data/spec/models/get_table_spec.rb +48 -0
- data/spec/models/get_tables_data_spec.rb +42 -0
- data/spec/models/get_tables_meta_spec.rb +48 -0
- data/spec/models/get_tables_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- metadata +451 -0
data/docs/FilesApi.md
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
# DirectusSDK::FilesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://myinstance.directus.io/api/1.1*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create_file**](FilesApi.md#create_file) | **POST** /files | Creates file
|
|
8
|
+
[**get_file**](FilesApi.md#get_file) | **GET** /files/{fileId} | Returns specific file by id
|
|
9
|
+
[**get_files**](FilesApi.md#get_files) | **GET** /files | Returns files
|
|
10
|
+
[**update_file**](FilesApi.md#update_file) | **PUT** /files/{fileId} | Creates file
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# **create_file**
|
|
14
|
+
> create_file(opts)
|
|
15
|
+
|
|
16
|
+
Creates file
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
```ruby
|
|
20
|
+
# load the gem
|
|
21
|
+
require 'directus_sdk'
|
|
22
|
+
# setup authorization
|
|
23
|
+
DirectusSDK.configure do |config|
|
|
24
|
+
# Configure API key authorization: api_key
|
|
25
|
+
config.api_key['access_token'] = 'YOUR API KEY'
|
|
26
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
27
|
+
#config.api_key_prefix['access_token'] = 'Bearer'
|
|
28
|
+
# Configure your host
|
|
29
|
+
config.host = "myinstance.directus.io"
|
|
30
|
+
# Enable or disable debugging output
|
|
31
|
+
config.debugging = false
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
api_instance = DirectusSDK::FilesApi.new
|
|
35
|
+
|
|
36
|
+
opts = {
|
|
37
|
+
data: "data_example", # String | The file's Base64 content
|
|
38
|
+
active: 56, # Integer | The file's status, default options are: 1 (active), 2 (inactive), 0 (deleted)
|
|
39
|
+
name: "name_example", # String | The name used in the filesystem, including the extension, eg: \"my-file.jpg\". This is generated by the system based on Global Settings
|
|
40
|
+
title: "title_example", # String | The file's title
|
|
41
|
+
location: "location_example", # String | Location of where the picture was taken, if any. Pulled from the IPTC location when available
|
|
42
|
+
type: "type_example", # String | The file's mime type
|
|
43
|
+
tags: "tags_example", # String | A CSV of tags for this file. Pulled from the IPTC keywords when available
|
|
44
|
+
caption: "caption_example", # String | The file's caption or description. Pulled from the IPTC description when available
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
begin
|
|
48
|
+
#Creates file
|
|
49
|
+
api_instance.create_file(opts)
|
|
50
|
+
rescue DirectusSDK::ApiError => e
|
|
51
|
+
puts "Exception when calling FilesApi->create_file: #{e}"
|
|
52
|
+
end
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Parameters
|
|
56
|
+
|
|
57
|
+
Name | Type | Description | Notes
|
|
58
|
+
------------- | ------------- | ------------- | -------------
|
|
59
|
+
**data** | **String**| The file's Base64 content | [optional]
|
|
60
|
+
**active** | **Integer**| The file's status, default options are: 1 (active), 2 (inactive), 0 (deleted) | [optional]
|
|
61
|
+
**name** | **String**| The name used in the filesystem, including the extension, eg: \"my-file.jpg\". This is generated by the system based on Global Settings | [optional]
|
|
62
|
+
**title** | **String**| The file's title | [optional]
|
|
63
|
+
**location** | **String**| Location of where the picture was taken, if any. Pulled from the IPTC location when available | [optional]
|
|
64
|
+
**type** | **String**| The file's mime type | [optional]
|
|
65
|
+
**tags** | **String**| A CSV of tags for this file. Pulled from the IPTC keywords when available | [optional]
|
|
66
|
+
**caption** | **String**| The file's caption or description. Pulled from the IPTC description when available | [optional]
|
|
67
|
+
|
|
68
|
+
### Return type
|
|
69
|
+
|
|
70
|
+
nil (empty response body)
|
|
71
|
+
|
|
72
|
+
### Authorization
|
|
73
|
+
|
|
74
|
+
[api_key](../README.md#api_key)
|
|
75
|
+
|
|
76
|
+
### HTTP request headers
|
|
77
|
+
|
|
78
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
|
79
|
+
- **Accept**: application/json
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
# **get_file**
|
|
84
|
+
> GetFile get_file(file_id)
|
|
85
|
+
|
|
86
|
+
Returns specific file by id
|
|
87
|
+
|
|
88
|
+
### Example
|
|
89
|
+
```ruby
|
|
90
|
+
# load the gem
|
|
91
|
+
require 'directus_sdk'
|
|
92
|
+
# setup authorization
|
|
93
|
+
DirectusSDK.configure do |config|
|
|
94
|
+
# Configure API key authorization: api_key
|
|
95
|
+
config.api_key['access_token'] = 'YOUR API KEY'
|
|
96
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
97
|
+
#config.api_key_prefix['access_token'] = 'Bearer'
|
|
98
|
+
# Configure your host
|
|
99
|
+
config.host = "myinstance.directus.io"
|
|
100
|
+
# Enable or disable debugging output
|
|
101
|
+
config.debugging = false
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
api_instance = DirectusSDK::FilesApi.new
|
|
105
|
+
|
|
106
|
+
file_id = 56 # Integer | ID of file to get
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
begin
|
|
110
|
+
#Returns specific file by id
|
|
111
|
+
result = api_instance.get_file(file_id)
|
|
112
|
+
p result
|
|
113
|
+
rescue DirectusSDK::ApiError => e
|
|
114
|
+
puts "Exception when calling FilesApi->get_file: #{e}"
|
|
115
|
+
end
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Parameters
|
|
119
|
+
|
|
120
|
+
Name | Type | Description | Notes
|
|
121
|
+
------------- | ------------- | ------------- | -------------
|
|
122
|
+
**file_id** | **Integer**| ID of file to get |
|
|
123
|
+
|
|
124
|
+
### Return type
|
|
125
|
+
|
|
126
|
+
[**GetFile**](GetFile.md)
|
|
127
|
+
|
|
128
|
+
### Authorization
|
|
129
|
+
|
|
130
|
+
[api_key](../README.md#api_key)
|
|
131
|
+
|
|
132
|
+
### HTTP request headers
|
|
133
|
+
|
|
134
|
+
- **Content-Type**: Not defined
|
|
135
|
+
- **Accept**: application/json
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
# **get_files**
|
|
140
|
+
> GetFiles get_files
|
|
141
|
+
|
|
142
|
+
Returns files
|
|
143
|
+
|
|
144
|
+
### Example
|
|
145
|
+
```ruby
|
|
146
|
+
# load the gem
|
|
147
|
+
require 'directus_sdk'
|
|
148
|
+
# setup authorization
|
|
149
|
+
DirectusSDK.configure do |config|
|
|
150
|
+
# Configure API key authorization: api_key
|
|
151
|
+
config.api_key['access_token'] = 'YOUR API KEY'
|
|
152
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
153
|
+
#config.api_key_prefix['access_token'] = 'Bearer'
|
|
154
|
+
# Configure your host
|
|
155
|
+
config.host = "myinstance.directus.io"
|
|
156
|
+
# Enable or disable debugging output
|
|
157
|
+
config.debugging = false
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
api_instance = DirectusSDK::FilesApi.new
|
|
161
|
+
|
|
162
|
+
begin
|
|
163
|
+
#Returns files
|
|
164
|
+
result = api_instance.get_files
|
|
165
|
+
p result
|
|
166
|
+
rescue DirectusSDK::ApiError => e
|
|
167
|
+
puts "Exception when calling FilesApi->get_files: #{e}"
|
|
168
|
+
end
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Parameters
|
|
172
|
+
This endpoint does not need any parameter.
|
|
173
|
+
|
|
174
|
+
### Return type
|
|
175
|
+
|
|
176
|
+
[**GetFiles**](GetFiles.md)
|
|
177
|
+
|
|
178
|
+
### Authorization
|
|
179
|
+
|
|
180
|
+
[api_key](../README.md#api_key)
|
|
181
|
+
|
|
182
|
+
### HTTP request headers
|
|
183
|
+
|
|
184
|
+
- **Content-Type**: Not defined
|
|
185
|
+
- **Accept**: application/json
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
# **update_file**
|
|
190
|
+
> update_file(file_id, opts)
|
|
191
|
+
|
|
192
|
+
Creates file
|
|
193
|
+
|
|
194
|
+
### Example
|
|
195
|
+
```ruby
|
|
196
|
+
# load the gem
|
|
197
|
+
require 'directus_sdk'
|
|
198
|
+
# setup authorization
|
|
199
|
+
DirectusSDK.configure do |config|
|
|
200
|
+
# Configure API key authorization: api_key
|
|
201
|
+
config.api_key['access_token'] = 'YOUR API KEY'
|
|
202
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
203
|
+
#config.api_key_prefix['access_token'] = 'Bearer'
|
|
204
|
+
# Configure your host
|
|
205
|
+
config.host = "myinstance.directus.io"
|
|
206
|
+
# Enable or disable debugging output
|
|
207
|
+
config.debugging = false
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
api_instance = DirectusSDK::FilesApi.new
|
|
211
|
+
|
|
212
|
+
file_id = 56 # Integer | ID of file to get
|
|
213
|
+
|
|
214
|
+
opts = {
|
|
215
|
+
data: "data_example", # String | The file's Base64 content
|
|
216
|
+
active: 56, # Integer | The file's status, default options are: 1 (active), 2 (inactive), 0 (deleted)
|
|
217
|
+
name: "name_example", # String | The name used in the filesystem, including the extension, eg: \"my-file.jpg\". This is generated by the system based on Global Settings
|
|
218
|
+
title: "title_example", # String | The file's title
|
|
219
|
+
location: "location_example", # String | Location of where the picture was taken, if any. Pulled from the IPTC location when available
|
|
220
|
+
type: "type_example", # String | The file's mime type
|
|
221
|
+
tags: "tags_example", # String | A CSV of tags for this file. Pulled from the IPTC keywords when available
|
|
222
|
+
caption: "caption_example", # String | The file's caption or description. Pulled from the IPTC description when available
|
|
223
|
+
url: "url_example", # String | File url relativity to Directus base url
|
|
224
|
+
width: 56, # Integer | File width
|
|
225
|
+
height: 56, # Integer | File height
|
|
226
|
+
size: 56, # Integer | File size in bytes
|
|
227
|
+
embed_id: "embed_id_example", # String | ID of the embedded file. Ex Youtube ID
|
|
228
|
+
user: 56, # Integer | File owner (who uploaded the file)
|
|
229
|
+
date_uploaded: "date_uploaded_example", # String | File uploaded date. TODO It should be an DateTime object
|
|
230
|
+
storage_adapter: "storage_adapter_example" # String | Storage adapter used to upload the file
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
begin
|
|
234
|
+
#Creates file
|
|
235
|
+
api_instance.update_file(file_id, opts)
|
|
236
|
+
rescue DirectusSDK::ApiError => e
|
|
237
|
+
puts "Exception when calling FilesApi->update_file: #{e}"
|
|
238
|
+
end
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Parameters
|
|
242
|
+
|
|
243
|
+
Name | Type | Description | Notes
|
|
244
|
+
------------- | ------------- | ------------- | -------------
|
|
245
|
+
**file_id** | **Integer**| ID of file to get |
|
|
246
|
+
**data** | **String**| The file's Base64 content | [optional]
|
|
247
|
+
**active** | **Integer**| The file's status, default options are: 1 (active), 2 (inactive), 0 (deleted) | [optional]
|
|
248
|
+
**name** | **String**| The name used in the filesystem, including the extension, eg: \"my-file.jpg\". This is generated by the system based on Global Settings | [optional]
|
|
249
|
+
**title** | **String**| The file's title | [optional]
|
|
250
|
+
**location** | **String**| Location of where the picture was taken, if any. Pulled from the IPTC location when available | [optional]
|
|
251
|
+
**type** | **String**| The file's mime type | [optional]
|
|
252
|
+
**tags** | **String**| A CSV of tags for this file. Pulled from the IPTC keywords when available | [optional]
|
|
253
|
+
**caption** | **String**| The file's caption or description. Pulled from the IPTC description when available | [optional]
|
|
254
|
+
**url** | **String**| File url relativity to Directus base url | [optional]
|
|
255
|
+
**width** | **Integer**| File width | [optional]
|
|
256
|
+
**height** | **Integer**| File height | [optional]
|
|
257
|
+
**size** | **Integer**| File size in bytes | [optional]
|
|
258
|
+
**embed_id** | **String**| ID of the embedded file. Ex Youtube ID | [optional]
|
|
259
|
+
**user** | **Integer**| File owner (who uploaded the file) | [optional]
|
|
260
|
+
**date_uploaded** | **String**| File uploaded date. TODO It should be an DateTime object | [optional]
|
|
261
|
+
**storage_adapter** | **String**| Storage adapter used to upload the file | [optional]
|
|
262
|
+
|
|
263
|
+
### Return type
|
|
264
|
+
|
|
265
|
+
nil (empty response body)
|
|
266
|
+
|
|
267
|
+
### Authorization
|
|
268
|
+
|
|
269
|
+
[api_key](../README.md#api_key)
|
|
270
|
+
|
|
271
|
+
### HTTP request headers
|
|
272
|
+
|
|
273
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
|
274
|
+
- **Accept**: application/json
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
data/docs/GetActivity.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# DirectusSDK::GetActivity
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**meta** | [**GetActivityMeta**](GetActivityMeta.md) | | [optional]
|
|
7
|
+
**data** | [**Array<GetActivityData>**](GetActivityData.md) | | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# DirectusSDK::GetActivityData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **Integer** | | [optional]
|
|
7
|
+
**identifier** | **String** | | [optional]
|
|
8
|
+
**action** | **String** | | [optional]
|
|
9
|
+
**table_name** | **String** | | [optional]
|
|
10
|
+
**row_id** | **Integer** | | [optional]
|
|
11
|
+
**user** | **String** | | [optional]
|
|
12
|
+
**datetime** | **String** | | [optional]
|
|
13
|
+
**type** | **String** | | [optional]
|
|
14
|
+
**data** | **String** | | [optional]
|
|
15
|
+
|
|
16
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# DirectusSDK::GetActivityMeta
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**total** | **Integer** | | [optional]
|
|
7
|
+
**type** | **String** | | [optional]
|
|
8
|
+
**table** | **String** | | [optional]
|
|
9
|
+
|
|
10
|
+
|
data/docs/GetBookmark.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# DirectusSDK::GetBookmark
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**meta** | [**GetTablesMeta**](GetTablesMeta.md) | | [optional]
|
|
7
|
+
**data** | [**GetBookmarksData**](GetBookmarksData.md) | | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# DirectusSDK::GetBookmarks
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**meta** | [**GetBookmarksMeta**](GetBookmarksMeta.md) | | [optional]
|
|
7
|
+
**data** | [**Array<GetBookmarksData>**](GetBookmarksData.md) | | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# DirectusSDK::GetBookmarksData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **Integer** | | [optional]
|
|
7
|
+
**user** | **Integer** | | [optional]
|
|
8
|
+
**title** | **String** | | [optional]
|
|
9
|
+
**url** | **String** | | [optional]
|
|
10
|
+
**icon_class** | **String** | | [optional]
|
|
11
|
+
**active** | **String** | | [optional]
|
|
12
|
+
**section** | **String** | | [optional]
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# DirectusSDK::GetBookmarksMeta
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**type** | **String** | |
|
|
7
|
+
**table** | **String** | |
|
|
8
|
+
**total** | **Integer** | | [optional]
|
|
9
|
+
**delete** | **Integer** | | [optional]
|
|
10
|
+
**active** | **Integer** | | [optional]
|
|
11
|
+
**draft** | **Integer** | | [optional]
|
|
12
|
+
**total_entries** | **Integer** | | [optional]
|
|
13
|
+
|
|
14
|
+
|
data/docs/GetFile.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# DirectusSDK::GetFile
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**meta** | [**GetTablesMeta**](GetTablesMeta.md) | | [optional]
|
|
7
|
+
**data** | [**GetFilesData**](GetFilesData.md) | | [optional]
|
|
8
|
+
|
|
9
|
+
|
data/docs/GetFiles.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# DirectusSDK::GetFiles
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**meta** | [**GetTablesMeta**](GetTablesMeta.md) | | [optional]
|
|
7
|
+
**data** | [**Array<GetFilesData>**](GetFilesData.md) | | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# DirectusSDK::GetFilesData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **Integer** | | [optional]
|
|
7
|
+
**active** | **Integer** | | [optional]
|
|
8
|
+
**name** | **String** | | [optional]
|
|
9
|
+
**url** | **String** | | [optional]
|
|
10
|
+
**title** | **String** | | [optional]
|
|
11
|
+
**location** | **String** | | [optional]
|
|
12
|
+
**caption** | **String** | | [optional]
|
|
13
|
+
**type** | **String** | | [optional]
|
|
14
|
+
**charset** | **String** | | [optional]
|
|
15
|
+
**tags** | **String** | | [optional]
|
|
16
|
+
**width** | **Integer** | | [optional]
|
|
17
|
+
**height** | **Integer** | | [optional]
|
|
18
|
+
**size** | **Integer** | | [optional]
|
|
19
|
+
**embed_id** | **String** | | [optional]
|
|
20
|
+
**user** | **Integer** | | [optional]
|
|
21
|
+
**date_uploaded** | **String** | | [optional]
|
|
22
|
+
**storage_adapter** | **String** | | [optional]
|
|
23
|
+
|
|
24
|
+
|
data/docs/GetGroup.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# DirectusSDK::GetGroup
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**meta** | [**GetTablesMeta**](GetTablesMeta.md) | | [optional]
|
|
7
|
+
**data** | [**GetGroupsDataData**](GetGroupsDataData.md) | | [optional]
|
|
8
|
+
|
|
9
|
+
|
data/docs/GetGroups.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# DirectusSDK::GetGroups
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**meta** | [**GetTablesMeta**](GetTablesMeta.md) | | [optional]
|
|
7
|
+
**data** | [**GetGroupsData**](GetGroupsData.md) | | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# DirectusSDK::GetGroupsData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**meta** | [**GetGroupsDataMeta**](GetGroupsDataMeta.md) | | [optional]
|
|
7
|
+
**data** | [**Array<GetGroupsDataData>**](GetGroupsDataData.md) | | [optional]
|
|
8
|
+
|
|
9
|
+
|