1- """
2- This call fetches the list of all the assets of a particular stack.
1+ r"""This call fetches the list of all the assets of a particular stack.
32It also returns the content of each asset in JSON format.
43You can also specify the environment of which you wish to get the assets.
54"""
@@ -27,10 +26,11 @@ def __init__(self, http_instance):
2726 self .base_url = "{}?{}" .format (self .base_url , "environment={}" .format (env ))
2827
2928 def environment (self , environment ):
30- """
31- Provide the name of the environment if you wish to retrieve the assets published
29+ r"""Provide the name of the environment if you wish to retrieve the assets published
3230 in a particular environment.
31+
3332 :param environment: environment of the stack
33+
3434 :return: AssetQuery - so we can chain the call
3535
3636 -----------------------------
@@ -45,12 +45,12 @@ def environment(self, environment):
4545 return self
4646
4747 def version (self , version ):
48- """
49- Specify the version number of the asset that you wish to retrieve.
48+ r"""Specify the version number of the asset that you wish to retrieve.
5049 If the version is not specified, the details of the latest version will be retrieved.
5150 To retrieve a specific version, keep the environment parameter blank.
5251
5352 :param version: version number of the asset that you wish to retrieve
53+
5454 :return: AssetQuery: so we can chain the call
5555
5656 -----------------------------
@@ -65,9 +65,9 @@ def version(self, version):
6565 return self
6666
6767 def include_dimension (self ):
68- """
69- include the dimensions (height and width) of the image in the response.
68+ r"""Include the dimensions (height and width) of the image in the response.
7069 Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, and PSD
70+
7171 :return: AssetQuery: so we can chain the call
7272
7373 -----------------------------
@@ -82,8 +82,8 @@ def include_dimension(self):
8282 return self
8383
8484 def relative_url (self ):
85- """
86- include the relative URLs of the assets in the response.
85+ r """include the relative URLs of the assets in the response.
86+
8787 :return: AssetQuery: so we can chain the call
8888
8989 -----------------------------
@@ -98,11 +98,11 @@ def relative_url(self):
9898 return self
9999
100100 def find (self ):
101- """
102- This call fetches the list of all the assets of a particular stack.
101+ r"""This call fetches the list of all the assets of a particular stack.
103102 It also returns the content of each asset in JSON format.
104103 Learn more about Assets
105104 [https://www.contentstack.com/docs/content-managers/work-with-assets].
105+
106106 :return: json result, List of asset object
107107
108108 -----------------------------
0 commit comments