You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -151,11 +147,72 @@ public ContentType contentType(@NotNull String contentTypeUid) {
151
147
* repository for future use.
152
148
* <p>
153
149
* These files can be attached and used in multiple entries.
150
+
* <ul>
151
+
* <li>
152
+
* folder(optional)
153
+
* Enter either the UID of a specific folder to get the assets of that folder, or enter ‘cs_root’ to get all assets and their folder details from the root folder.
154
+
* <p>
155
+
* Example:bltd899999999
156
+
* </li>
157
+
* <li>
158
+
* include_folders(optional)
159
+
* Set this parameter to ‘true’ to include the details of the created folders along with the details of the assets.
160
+
* <p>
161
+
* Example:true
162
+
* </li>
163
+
* <li>
164
+
* environment(optional)
165
+
* Enter the name of the environment to retrieve the assets published on them. You can enter multiple environments.
166
+
* <p>
167
+
* Example:production
168
+
* </li>
169
+
* <li>
170
+
* version(optional)
171
+
* Specify the version number of the asset that you want to retrieve. If the version is not specified, the details of the latest version will be retrieved.
172
+
* <p>
173
+
* Example:1
174
+
* </li>
175
+
* <li>
176
+
* include_publish_details(optional)
177
+
* Enter 'true' to include the publish details of the entry.
178
+
* <p>
179
+
* Example:true
180
+
* </li>
181
+
* <li>
182
+
* include_count(optional)
183
+
* Set this parameter to 'true' to include the total number of assets available in your stack in the response body.
184
+
* <p>
185
+
* Example:false
186
+
* </li>
187
+
* <li>
188
+
* relative_urls(optional)
189
+
* Set this to 'true' to display the relative URL of the asset.
190
+
* <p>
191
+
* Example:false
192
+
* </li>
193
+
* <li>
194
+
* asc_field_uid(optional)
195
+
* Enter the unique ID of the field for sorting the assets in ascending order by that field.
196
+
* <p>
197
+
* Example:created_at
198
+
* </li>
199
+
* <li>
200
+
* desc_field_uid(optional)
201
+
* Enter the unique ID of the field for sorting the assets in descending order by that field.
202
+
* <p>
203
+
* Example:file_size
204
+
* </li>
205
+
* <li>
206
+
* include_branch(optional)
207
+
* Set this to 'true' to include the <b>_branch</b> top-level key in the response. This key states the unique ID of the branch where the concerned Contentstack module resides.
208
+
* <p>
209
+
* Example:false
210
+
* </ul>
154
211
*
155
212
* @return Asset
156
213
*/
157
214
publicAssetasset() {
158
-
returnnewAsset(this.client);
215
+
returnnewAsset(this.client, this.headers);
159
216
}
160
217
161
218
/**
@@ -164,11 +221,72 @@ public Asset asset() {
164
221
* repository for future use.
165
222
* <p>
166
223
* These files can be attached and used in multiple entries.
224
+
* <ul>
225
+
* <li>
226
+
* folder(optional)
227
+
* Enter either the UID of a specific folder to get the assets of that folder, or enter ‘cs_root’ to get all assets and their folder details from the root folder.
228
+
* <p>
229
+
* Example:bltd899999999
230
+
* </li>
231
+
* <li>
232
+
* include_folders(optional)
233
+
* Set this parameter to ‘true’ to include the details of the created folders along with the details of the assets.
234
+
* <p>
235
+
* Example:true
236
+
* </li>
237
+
* <li>
238
+
* environment(optional)
239
+
* Enter the name of the environment to retrieve the assets published on them. You can enter multiple environments.
240
+
* <p>
241
+
* Example:production
242
+
* </li>
243
+
* <li>
244
+
* version(optional)
245
+
* Specify the version number of the asset that you want to retrieve. If the version is not specified, the details of the latest version will be retrieved.
246
+
* <p>
247
+
* Example:1
248
+
* </li>
249
+
* <li>
250
+
* include_publish_details(optional)
251
+
* Enter 'true' to include the publish details of the entry.
252
+
* <p>
253
+
* Example:true
254
+
* </li>
255
+
* <li>
256
+
* include_count(optional)
257
+
* Set this parameter to 'true' to include the total number of assets available in your stack in the response body.
258
+
* <p>
259
+
* Example:false
260
+
* </li>
261
+
* <li>
262
+
* relative_urls(optional)
263
+
* Set this to 'true' to display the relative URL of the asset.
264
+
* <p>
265
+
* Example:false
266
+
* </li>
267
+
* <li>
268
+
* asc_field_uid(optional)
269
+
* Enter the unique ID of the field for sorting the assets in ascending order by that field.
270
+
* <p>
271
+
* Example:created_at
272
+
* </li>
273
+
* <li>
274
+
* desc_field_uid(optional)
275
+
* Enter the unique ID of the field for sorting the assets in descending order by that field.
276
+
* <p>
277
+
* Example:file_size
278
+
* </li>
279
+
* <li>
280
+
* include_branch(optional)
281
+
* Set this to 'true' to include the <b>_branch</b> top-level key in the response. This key states the unique ID of the branch where the concerned Contentstack module resides.
0 commit comments