Skip to content

Commit bd39be4

Browse files
sunil-lakshmanishaileshmishraharshithad0703
authored
Fixed pagination issue, added custom payload option in all methods an… (#46)
* Added users and organisations api methods User Session Logging in/out Users Get User Update User Activate User Request Password Reset Password Organizations Get All Organizations Get Single Organization Organization Roles Organization Users Transfer Organization Ownership Organization Stacks Organization Logs * added requirements.txt file * loaded install, changlog , codeowners and release.yml file * Organized package structure * Developed stack Implementation * Code Optimized * Added Mock test and Api Test cases * Added test cases and coverage packages * Added API documentation and added stacks test cases * Added coverage reports generartion in github action Added coverage report github action Changed methods name Changed unit test cases Code improvements API Documentation * Added global fields class * - General code improvements - Corrected few testcases - Single place for credentials - linting added * Feat/cs 40287 workflow class implemetation (#14) * feat: ✨ implemented branches and aliases with unit and api test cases * test: ✅ added mock tests for branches and aliases * docs: 📝 added api documentation for branches and aliases * feat: ✨ content type implementation with api references, unit test cases and api test cases * test: renamed the api, mock, unit test file names of branch and alias * test: renamed file path in branch and alias mock tests * test: improved coverage report for branches and aliases * test: Added mock test cases for content type * docs: 📝 Cleared typo errors * test: removed unwanted test files * refactor: Code improvement for branches, aliases and content type implementation * - General code improvements - Testcases improvements * - General code improvements - Testcases improvements * - General code improvements - Formats are updated * code enhancement * Created Entry class and test cases Created Entry Class created entry class test cases * feat: ✨ asset class implementation with tests and api docs * Code improvements and changed test cases to new structure * test: ✅ added resources and made some changes in api and unit test cases * Updated Unit test cases. * Webhook class Implementation * Created workflow class * Deleted secrets-scan.yml file * Updated variable name * Deleted sast-scan.yml file * Feat/cs 40545 metadata class implemetation (#15) * Metadata class implementation * Deleted sast-scan.yml file * Fixed PR comments * Code optimisation and handling custom error exception * Removed uids * Feat/cs 40549 roles class implementation (#16) * Created roles class with unit testcases, mock test cases and api test cases * Updated coverage report github workflow file * Added coverage install command * Added pytest install command * Updated stack class unit test file * Added html coverage * Added coverage reports and visualizations * Removed visualisation * Generating coverage report in svg format * Added coverage-badge install command * Fixed PR comments and code optimisation * Added coverage reports graphical visualisation in github page * Created readme file * changed variable name * Updated readme file * Update README.md * Added auditlog class and license file (#17) * Added auditlog class and license file * Added test case for invalid inputs * commented the idiom It Allows You to Execute Code When the File Runs as a Script, but Not When It’s Imported as a Module --------- Co-authored-by: Shailesh Mishra <[email protected]> --------- Co-authored-by: Shailesh Mishra <[email protected]> * Developed environment class implementation (#19) * Developed environment class implementation * Updated variable name * Added CI-CD implementation (#20) * Added CI-CD implementation Added CICD implemetation Updated code Optimization Updated code for check package in test environment. * Removed Unused files * Feat/cs 41198 locale class implementation (#21) * Added locale class implementation * Implemented taxonomy support (#22) --------- Co-authored-by: harshithad0703 <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> * Feat/cs 41199 label class implementation (#25) * Next (#23) * Added users and organisations api methods User Session Logging in/out Users Get User Update User Activate User Request Password Reset Password Organizations Get All Organizations Get Single Organization Organization Roles Organization Users Transfer Organization Ownership Organization Stacks Organization Logs * added requirements.txt file * loaded install, changlog , codeowners and release.yml file * Organized package structure * Developed stack Implementation * Code Optimized * Added Mock test and Api Test cases * Added test cases and coverage packages * Added API documentation and added stacks test cases * Added coverage reports generartion in github action Added coverage report github action Changed methods name Changed unit test cases Code improvements API Documentation * Added global fields class * - General code improvements - Corrected few testcases - Single place for credentials - linting added * Feat/cs 40287 workflow class implemetation (#14) * feat: ✨ implemented branches and aliases with unit and api test cases * test: ✅ added mock tests for branches and aliases * docs: 📝 added api documentation for branches and aliases * feat: ✨ content type implementation with api references, unit test cases and api test cases * test: renamed the api, mock, unit test file names of branch and alias * test: renamed file path in branch and alias mock tests * test: improved coverage report for branches and aliases * test: Added mock test cases for content type * docs: 📝 Cleared typo errors * test: removed unwanted test files * refactor: Code improvement for branches, aliases and content type implementation * - General code improvements - Testcases improvements * - General code improvements - Testcases improvements * - General code improvements - Formats are updated * code enhancement * Created Entry class and test cases Created Entry Class created entry class test cases * feat: ✨ asset class implementation with tests and api docs * Code improvements and changed test cases to new structure * test: ✅ added resources and made some changes in api and unit test cases * Updated Unit test cases. * Webhook class Implementation * Created workflow class * Deleted secrets-scan.yml file * Updated variable name * Deleted sast-scan.yml file * Feat/cs 40545 metadata class implemetation (#15) * Metadata class implementation * Deleted sast-scan.yml file * Fixed PR comments * Code optimisation and handling custom error exception * Removed uids * Feat/cs 40549 roles class implementation (#16) * Created roles class with unit testcases, mock test cases and api test cases * Updated coverage report github workflow file * Added coverage install command * Added pytest install command * Updated stack class unit test file * Added html coverage * Added coverage reports and visualizations * Removed visualisation * Generating coverage report in svg format * Added coverage-badge install command * Fixed PR comments and code optimisation * Added coverage reports graphical visualisation in github page * Created readme file * changed variable name * Updated readme file * Update README.md * Added auditlog class and license file (#17) * Added auditlog class and license file * Added test case for invalid inputs * commented the idiom It Allows You to Execute Code When the File Runs as a Script, but Not When It’s Imported as a Module --------- Co-authored-by: Shailesh Mishra <[email protected]> --------- Co-authored-by: Shailesh Mishra <[email protected]> * Developed environment class implementation (#19) * Developed environment class implementation * Updated variable name * Added CI-CD implementation (#20) * Added CI-CD implementation Added CICD implemetation Updated code Optimization Updated code for check package in test environment. * Removed Unused files * Feat/cs 41198 locale class implementation (#21) * Added locale class implementation * Implemented taxonomy support (#22) --------- Co-authored-by: harshithad0703 <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> --------- Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: harshithad0703 <[email protected]> * Deleted .idea directory (#24) * Deleted .idea directory * Deleted Test apidoc files * Deleted coverage.txt file * Created label class implementation * Updated document data --------- Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: harshithad0703 <[email protected]> * Feat/cs 41332 terms class implemetation (#27) * Next (#26) * Added users and organisations api methods User Session Logging in/out Users Get User Update User Activate User Request Password Reset Password Organizations Get All Organizations Get Single Organization Organization Roles Organization Users Transfer Organization Ownership Organization Stacks Organization Logs * added requirements.txt file * loaded install, changlog , codeowners and release.yml file * Organized package structure * Developed stack Implementation * Code Optimized * Added Mock test and Api Test cases * Added test cases and coverage packages * Added API documentation and added stacks test cases * Added coverage reports generartion in github action Added coverage report github action Changed methods name Changed unit test cases Code improvements API Documentation * Added global fields class * - General code improvements - Corrected few testcases - Single place for credentials - linting added * Feat/cs 40287 workflow class implemetation (#14) * feat: ✨ implemented branches and aliases with unit and api test cases * test: ✅ added mock tests for branches and aliases * docs: 📝 added api documentation for branches and aliases * feat: ✨ content type implementation with api references, unit test cases and api test cases * test: renamed the api, mock, unit test file names of branch and alias * test: renamed file path in branch and alias mock tests * test: improved coverage report for branches and aliases * test: Added mock test cases for content type * docs: 📝 Cleared typo errors * test: removed unwanted test files * refactor: Code improvement for branches, aliases and content type implementation * - General code improvements - Testcases improvements * - General code improvements - Testcases improvements * - General code improvements - Formats are updated * code enhancement * Created Entry class and test cases Created Entry Class created entry class test cases * feat: ✨ asset class implementation with tests and api docs * Code improvements and changed test cases to new structure * test: ✅ added resources and made some changes in api and unit test cases * Updated Unit test cases. * Webhook class Implementation * Created workflow class * Deleted secrets-scan.yml file * Updated variable name * Deleted sast-scan.yml file * Feat/cs 40545 metadata class implemetation (#15) * Metadata class implementation * Deleted sast-scan.yml file * Fixed PR comments * Code optimisation and handling custom error exception * Removed uids * Feat/cs 40549 roles class implementation (#16) * Created roles class with unit testcases, mock test cases and api test cases * Updated coverage report github workflow file * Added coverage install command * Added pytest install command * Updated stack class unit test file * Added html coverage * Added coverage reports and visualizations * Removed visualisation * Generating coverage report in svg format * Added coverage-badge install command * Fixed PR comments and code optimisation * Added coverage reports graphical visualisation in github page * Created readme file * changed variable name * Updated readme file * Update README.md * Added auditlog class and license file (#17) * Added auditlog class and license file * Added test case for invalid inputs * commented the idiom It Allows You to Execute Code When the File Runs as a Script, but Not When It’s Imported as a Module --------- Co-authored-by: Shailesh Mishra <[email protected]> --------- Co-authored-by: Shailesh Mishra <[email protected]> * Developed environment class implementation (#19) * Developed environment class implementation * Updated variable name * Added CI-CD implementation (#20) * Added CI-CD implementation Added CICD implemetation Updated code Optimization Updated code for check package in test environment. * Removed Unused files * Feat/cs 41198 locale class implementation (#21) * Added locale class implementation * Implemented taxonomy support (#22) --------- Co-authored-by: harshithad0703 <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> * Feat/cs 41199 label class implementation (#25) * Next (#23) * Added users and organisations api methods User Session Logging in/out Users Get User Update User Activate User Request Password Reset Password Organizations Get All Organizations Get Single Organization Organization Roles Organization Users Transfer Organization Ownership Organization Stacks Organization Logs * added requirements.txt file * loaded install, changlog , codeowners and release.yml file * Organized package structure * Developed stack Implementation * Code Optimized * Added Mock test and Api Test cases * Added test cases and coverage packages * Added API documentation and added stacks test cases * Added coverage reports generartion in github action Added coverage report github action Changed methods name Changed unit test cases Code improvements API Documentation * Added global fields class * - General code improvements - Corrected few testcases - Single place for credentials - linting added * Feat/cs 40287 workflow class implemetation (#14) * feat: ✨ implemented branches and aliases with unit and api test cases * test: ✅ added mock tests for branches and aliases * docs: 📝 added api documentation for branches and aliases * feat: ✨ content type implementation with api references, unit test cases and api test cases * test: renamed the api, mock, unit test file names of branch and alias * test: renamed file path in branch and alias mock tests * test: improved coverage report for branches and aliases * test: Added mock test cases for content type * docs: 📝 Cleared typo errors * test: removed unwanted test files * refactor: Code improvement for branches, aliases and content type implementation * - General code improvements - Testcases improvements * - General code improvements - Testcases improvements * - General code improvements - Formats are updated * code enhancement * Created Entry class and test cases Created Entry Class created entry class test cases * feat: ✨ asset class implementation with tests and api docs * Code improvements and changed test cases to new structure * test: ✅ added resources and made some changes in api and unit test cases * Updated Unit test cases. * Webhook class Implementation * Created workflow class * Deleted secrets-scan.yml file * Updated variable name * Deleted sast-scan.yml file * Feat/cs 40545 metadata class implemetation (#15) * Metadata class implementation * Deleted sast-scan.yml file * Fixed PR comments * Code optimisation and handling custom error exception * Removed uids * Feat/cs 40549 roles class implementation (#16) * Created roles class with unit testcases, mock test cases and api test cases * Updated coverage report github workflow file * Added coverage install command * Added pytest install command * Updated stack class unit test file * Added html coverage * Added coverage reports and visualizations * Removed visualisation * Generating coverage report in svg format * Added coverage-badge install command * Fixed PR comments and code optimisation * Added coverage reports graphical visualisation in github page * Created readme file * changed variable name * Updated readme file * Update README.md * Added auditlog class and license file (#17) * Added auditlog class and license file * Added test case for invalid inputs * commented the idiom It Allows You to Execute Code When the File Runs as a Script, but Not When It’s Imported as a Module --------- Co-authored-by: Shailesh Mishra <[email protected]> --------- Co-authored-by: Shailesh Mishra <[email protected]> * Developed environment class implementation (#19) * Developed environment class implementation * Updated variable name * Added CI-CD implementation (#20) * Added CI-CD implementation Added CICD implemetation Updated code Optimization Updated code for check package in test environment. * Removed Unused files * Feat/cs 41198 locale class implementation (#21) * Added locale class implementation * Implemented taxonomy support (#22) --------- Co-authored-by: harshithad0703 <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> --------- Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: harshithad0703 <[email protected]> * Deleted .idea directory (#24) * Deleted .idea directory * Deleted Test apidoc files * Deleted coverage.txt file * Created label class implementation * Updated document data --------- Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: harshithad0703 <[email protected]> --------- Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: harshithad0703 <[email protected]> * Added terms class implementation --------- Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: harshithad0703 <[email protected]> * Added bulk operations class implementation (#29) * Added release and release item class implementation (#31) * Added release and release item class implementation * fixed failed unit test case * Fixed pagination issue, added custom payload option in all methods an… (#45) * Fixed pagination issue, added custom payload option in all methods and added pagination testcases * Added urlencode method for parameter to avoid symbols * Removed duplicate line and changes test values * Resolved conflicts * Fixed code conflits * Updated changelog file --------- Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: Shailesh Mishra <[email protected]> Co-authored-by: harshithad0703 <[email protected]>
1 parent af471da commit bd39be4

File tree

35 files changed

+240
-218
lines changed

35 files changed

+240
-218
lines changed

.talismanrc

Lines changed: 49 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -291,52 +291,62 @@ fileignoreconfig:
291291
checksum: ffef2e354ac901eafd0f0aa8a95394892ec23b9d8b807de3e096a28536a75126
292292
version: ""
293293
fileignoreconfig:
294-
- filename: tests/mock/management_token/test_management_token_mock.py
295-
checksum: 3e477590f628e3f713a7e17e397b1cb2f4d07400e70165dbc6b880be2e5c85d8
296-
- filename: tests/mock/delivery_token/test_delivery_token_mock.py
297-
checksum: 295c1c8b7474c6d6c27e9020de0b4c8ee4546f24db66324279abc841b8068e1f
298-
- filename: tests/api/delivery_token/test_delivery_token_api.py
299-
checksum: 169ceff6f69e548878508c090016bb6df2a04b4d81f6a4139c10dc85dc244996
300-
- filename: tests/unit/delivery_token/test_delivery_token_unit.py
301-
checksum: b078f78a4856f5f3aff7627747b6fae4d1dfcbd2f93fb2ec47ce1e9fd00384ac
302-
- filename: tests/api/management_token/test_management_token_api.py
303-
checksum: 11318bdb60aebf8a65c78fcb0bdd6cf6b42bb6ba6462871b170d95be08caf5b0
304-
- filename: tests/unit/management_token/test_management_token_unit.py
305-
checksum: ddb2b5dd54b6ac762fa78936196a4b2088d82254c0ee25fccae290375d1f71e7
306-
version: ""
307-
fileignoreconfig:
308-
- filename: tests/api/publish_queue/test_publish_queue_api.py
309-
checksum: 8364fcd077ec8e99556738460d0659e2ec7bf8747969428f2d99761ef3ae4020
310-
- filename: tests/mock/publish_queue/test_publish_queue_mock.py
311-
checksum: 6581d4def863f65e0321e0ff3e9ee074aa5ae1a53bf46035ea01b41e9de0bc36
312-
- filename: tests/unit/publish_queue/test_publish_queue_unit.py
313-
checksum: add55174c8c3ee4e931433e9bf54a80304d6927681912a19e5ee78747dc608bf
314-
version: ""
315-
fileignoreconfig:
316-
- filename: tests/api/extensions/test_extension_api.py
317-
checksum: 8e1dda663e6fd54d7a05c75ce7ed146b4c9dbf13103236f5bb45960482f32fef
318-
- filename: tests/resources/mock_extension/find.json
319-
checksum: ba433741506e21dd46a1ba72b81ff3ef6b9377c589cc90bdcab23b496762b630
320-
- filename: tests/resources/mock_extension/upload.json
321-
checksum: 20364016b0db0e64ad20a9a1ce922fdcfd6db3708f4046a129a54e3d22d80cec
322-
- filename: tests/unit/extensions/test_extension_unit.py
323-
checksum: 7d6c6cc7ca536a099d3c1e08a30fc9eeb441ca29b5b908b55bfb900bb27a181f
324-
- filename: tests/mock/extensions/test_extension_mock.py
325-
checksum: 88bf3b97761c880dc360e358018150e198117a2acef812d1f9ff4653708f8b5c
326-
version: ""
327-
fileignoreconfig:
328294
- filename: contentstack_management/environments/environment.py
329-
checksum: f689b0564c0f35929d3a6f086d31baa6ea37c9a7fea3f6dec8988fcfc3a245e3
295+
checksum: 46235166ac0e658ec22956cb4579609b0641dd42a711cc3858df2611f987c691
330296
- filename: tests/api/environments/test_environments_api.py
331297
checksum: 72490f48a6f3346db6a00d80ce78c2dbc55219999270c75dd80d6ab66a8ffb40
332298
- filename: tests/mock/environments/test_environments_mock.py
333299
checksum: b6a2c104b7296034064318c7c9c826bfe81aa84c511fffe8199393a4787f8306
334300
- filename: tests/unit/environments/test_environment_unit.py
335301
checksum: 3a8efa44ba5bfaf4e599d76a0da933cbe883df5a13c3b0edce9d383b50ea4bfe
302+
- filename: tests/cred.py
303+
checksum: d11b8e5ede925f6668971e2244dcc61faba9b74a3e38567daa8638a8bb364688
304+
- filename: tests/api/release_items/test_release_items_api.py
305+
checksum: 11ea5fce857606d60cb7e835393bc55e2f9d930946871e5f8196e73a4973b040
306+
- filename: tests/api/releases/test_releases_api.py
307+
checksum: ecd8ac8e79f5c8e225530f43ee4b17eead28dea18d256ca22a6f22628bbac48e
308+
- filename: tests/unit/release_items/test_release_items_unit.py
309+
checksum: 48d3201f7f77600a53f693dbaaedcb7b76bb02848c0e52d1a57c8af38d418b21
310+
- filename: tests/unit/releases/test_release_unit.py
311+
checksum: cdd55fd0614169ee13356d11688f6d24f0818cf805edd4cee2282bfd035c14e0
312+
- filename: tests/mock/release_items/test_release_items_mock.py
313+
checksum: 995b63af12be93f45d7f0a33bf3538187e3b0ffbcb1a92d38107f6fe8242540b
314+
- filename: tests/mock/releases/test_releases_mock.py
315+
checksum: 4faf19c127f3436bcca022537229109b1ce2ed1a8a0ee04b769711c2a2e035b4
336316
- filename: contentstack_management/aliases/aliases.py
337-
checksum: 96ebf3aa2256234997d5a50fa78310683b3eb8182f3904d95fa4b155ce0b6f94
317+
checksum: a66365ff6ca026d122149cb016aee286231e16be25adc846a97b6c3390f3bb21
338318
- filename: contentstack_management/branches/branches.py
339-
checksum: a02a5821d8dbf0a2e364bbae87ca25d182c6edf56fdceb2e8e7c68874c15f0e4
319+
checksum: 8b14236f13966b4c27aba16a4a21e1ceffba4d0e4c0fc512f607c7aa9bba6f4f
340320
- filename: contentstack_management/content_types/content_type.py
341-
checksum: 0a00803d139fef0b91ba6f2a38af41bd02e6a8a3390e74f9c8c2b85bf6162d9a
342-
version: ""
321+
checksum: d9bc657d86688a17637b0c51f16c47c57eca72748b99dd7ecf43cf14b3371af3
322+
- filename: tests/resources/mock_extension/upload.json
323+
checksum: 20364016b0db0e64ad20a9a1ce922fdcfd6db3708f4046a129a54e3d22d80cec
324+
- filename: tests/api/delivery_token/test_delivery_token_api.py
325+
checksum: 4a446ca4610325b91cdef7abe05e85468e3916b74fbbd8f51038a63bcb219bbf
326+
- filename: tests/resources/mock_extension/find.json
327+
checksum: ba433741506e21dd46a1ba72b81ff3ef6b9377c589cc90bdcab23b496762b630
328+
- filename: tests/api/extensions/test_extension_api.py
329+
checksum: e964c55803c9dab9f5d0b26754990e9411c6198a50d3ff6ab06401a07f3d5563
330+
- filename: tests/mock/publish_queue/test_publish_queue_mock.py
331+
checksum: a6450520edc084c3ef5299034af53100457e78b0d1b2b8ac7706791a49725de4
332+
- filename: tests/mock/extensions/test_extension_mock.py
333+
checksum: 67e60a26af9db5b0ed86673a7198b0b9401f3a48b926c82ea92aa1b8f448d157
334+
- filename: tests/mock/delivery_token/test_delivery_token_mock.py
335+
checksum: 8499110337a98bfe25cfd59cdf018431ec066e77dab26ff347d9bf62555769f2
336+
- filename: tests/unit/stack/test_stack.py
337+
checksum: 43e5b5f95f3d6a3de3eafa70bd1c24bf448c4a21e0f23ac37ba483e5e19da049
338+
- filename: tests/mock/management_token/test_management_token_mock.py
339+
checksum: 35d6653e9f18f6b5e6691fe40aae7e3b968dbc3cef59d3df6239738736a5bd02
340+
- filename: tests/unit/management_token/test_management_token_unit.py
341+
checksum: 24cfc725c6c807d916c6450568099a0e0da3bc8f2ba022a5c7dfa2c4b1ab9a7d
342+
- filename: tests/api/publish_queue/test_publish_queue_api.py
343+
checksum: cdf86352249af48dc4924249d52fc3296f9df73c6b82b2c65b2d886f6c0c3210
344+
- filename: tests/unit/extensions/test_extension_unit.py
345+
checksum: a33e88cf49a6a0c4d0e7e75189812fc8e514947c87916391fb073bf0bf7cdd76
346+
- filename: tests/api/management_token/test_management_token_api.py
347+
checksum: fe0996fb15985d91e852c99761e2160332e16b5922a6245702155d7f24e5ed1c
348+
- filename: tests/unit/publish_queue/test_publish_queue_unit.py
349+
checksum: f38789fb171166354dd1bc452d4a137af4232465356662dce2bdbde352074d6f
350+
- filename: tests/unit/delivery_token/test_delivery_token_unit.py
351+
checksum: c7323b95249759bc67c33d3a89d3d2e8b3ed3d146b944682d451ebebe22567c0
352+
version: ""

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# CHANGELOG
22

33
## Content Management SDK For Python
4+
---
5+
6+
## v1.0.1
7+
8+
#### Date: 12 December 2023
49

10+
- Fixed pagination issue, added custom payload option in all methods
511
---
612

713
## v1.0.0

contentstack_management/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
__author__ = 'ishaileshmishra'
7373
__status__ = 'debug'
7474
__region__ = 'na'
75-
__version__ = '1.0.0'
75+
__version__ = '1.0.1'
7676
__host__ = 'api.contentstack.io'
7777
__protocol__ = 'https://'
7878
__api_version__ = 'v3'

contentstack_management/aliases/aliases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def assign(self, data):
7373
"""
7474
url = f"{_path}/{self.alias_uid}"
7575
body = json.dumps(data)
76-
return self.client.put(url, headers=self.client.headers, data=body)
76+
return self.client.put(url, headers=self.client.headers, params=self.params, data=body)
7777

7878
def delete(self):
7979
r"""

contentstack_management/auditlogs/auditlog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def find(self):
3737
3838
-------------------------------
3939
"""
40-
return self.client.get(self.path, headers = self.client.headers)
40+
return self.client.get(self.path, headers = self.client.headers, params = self.params)
4141

4242

4343

@@ -56,7 +56,7 @@ def fetch(self):
5656
"""
5757
self.validate_uid()
5858
url = f"{self.path}/{self.log_item_uid}"
59-
return self.client.get(url, headers = self.client.headers)
59+
return self.client.get(url, headers = self.client.headers, params = self.params)
6060

6161
def validate_uid(self):
6262
if self.log_item_uid is None or '':

contentstack_management/branches/branches.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def fetch(self):
5757
if self.branch_uid is None or '':
5858
raise Exception('branch_uid is required field')
5959
url = f"{_path}/{self.branch_uid}"
60-
return self.client.get(url, headers=self.client.headers)
60+
return self.client.get(url, headers=self.client.headers, params=self.params)
6161

6262
def create(self, data):
6363
r"""
@@ -82,7 +82,7 @@ def create(self, data):
8282
--------------------------------
8383
"""
8484
data = json.dumps(data)
85-
return self.client.post(_path, headers=self.client.headers, data=data)
85+
return self.client.post(_path, headers=self.client.headers, data=data, params=self.params)
8686

8787
def delete(self):
8888
r"""

contentstack_management/bulk_operations/bulk_operation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def publish(self, data: dict):
7373
"""
7474
url = f"{self.path}/publish"
7575
data = json.dumps(data)
76-
return self.client.post(url, headers = self.client.headers, data = data)
76+
return self.client.post(url, headers = self.client.headers, data = data, params=self.params)
7777

7878
def unpublish(self, data: dict):
7979
"""
@@ -136,7 +136,7 @@ def unpublish(self, data: dict):
136136

137137
url = f"{self.path}/unpublish"
138138
data = json.dumps(data)
139-
return self.client.post(url, headers = self.client.headers, data = data)
139+
return self.client.post(url, headers = self.client.headers, data = data, params=self.params)
140140

141141
def delete(self, data: dict):
142142
"""
@@ -173,7 +173,7 @@ def delete(self, data: dict):
173173

174174
url = f"{self.path}/delete"
175175
data = json.dumps(data)
176-
return self.client.post(url, headers = self.client.headers, data = data)
176+
return self.client.post(url, headers = self.client.headers, data = data, params=self.params)
177177

178178
def update(self, data: dict):
179179
"""
@@ -225,6 +225,6 @@ def update(self, data: dict):
225225

226226
url = f"{self.path}/workflow"
227227
data = json.dumps(data)
228-
return self.client.post(url, headers = self.client.headers, data = data)
228+
return self.client.post(url, headers = self.client.headers, data = data, params=self.params)
229229

230230

contentstack_management/content_types/content_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def imports(self, file_path):
341341
files = {'content_type': open(f"{file_path}", 'rb')}
342342
return self.client.post(url, headers=self.client.headers, params=self.params, files=files)
343343

344-
def entry(self, entry_uid=None):
344+
def entry(self, entry_uid: str =None):
345345
if self.content_type_uid is None:
346346
raise Exception('Content type uid is required')
347347
return entry.Entry(self.client, self.content_type_uid, entry_uid)

contentstack_management/delivery_token/delivery_token.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def find(self):
3737
3838
-------------------------------
3939
"""
40-
return self.client.get(self.path, headers = self.client.headers)
40+
return self.client.get(self.path, headers = self.client.headers, params = self.params)
4141

4242
def fetch(self):
4343
"""
@@ -54,7 +54,7 @@ def fetch(self):
5454
"""
5555
self.validate_uid()
5656
url = f"{self.path}/{self.delivery_token_uid}"
57-
return self.client.get(url, headers = self.client.headers)
57+
return self.client.get(url, headers = self.client.headers, params = self.params)
5858

5959

6060
def create(self, data: dict):
@@ -112,7 +112,7 @@ def create(self, data: dict):
112112
"""
113113

114114
data = json.dumps(data)
115-
return self.client.post(self.path, headers = self.client.headers, data=data)
115+
return self.client.post(self.path, headers = self.client.headers, data=data, params=self.params)
116116

117117
def update(self, data: dict):
118118
"""
@@ -168,7 +168,7 @@ def update(self, data: dict):
168168
self.validate_uid()
169169
url = f"{self.path}/{self.delivery_token_uid}"
170170
data = json.dumps(data)
171-
return self.client.put(url, headers = self.client.headers, data=data)
171+
return self.client.put(url, headers = self.client.headers, data=data, params=self.params)
172172

173173

174174
def delete(self):
@@ -188,7 +188,7 @@ def delete(self):
188188
"""
189189
self.validate_uid()
190190
url = f"{self.path}/{self.delivery_token_uid}"
191-
return self.client.delete(url, headers = self.client.headers)
191+
return self.client.delete(url, headers = self.client.headers, params=self.params)
192192

193193
def validate_uid(self):
194194
if self.delivery_token_uid is None or '':

0 commit comments

Comments
 (0)