Metadata-Version: 2.1
Name: commonsApi
Version: 1.0.1
Summary: This is a package to automate apis in a simple way by using common reusable functions
Home-page: https://github.com/ManikandanRajendran/python-package-for-api-testing
Author: Manikandan Rajendran
Author-email: r.manikandan.king@gmail.com
License: MIT
Description: # API Testing Commons
        
        - This is a package to automate apis in a simple way by using common reusable functions.
        
        - This module containes the major reusable functions which can be imported and accessed directly which will reduce the time and code redundancy.
        
        ## Installation
        ----------------
        
        ```
        pip install commonsApi==<version>
        ```
        
        ## Methods available
        ---------------------
        - > get_api(endpoint, header)
        - > post_api(endpoint, request_payload, header)
        - > put_api(endpoint, request_payload, header)
        - > delete_api(endpoint, data, header)
        - > validate_status_code(response, expected_status)
        - > validate_schema(response, expected_schema)
        
        
        ## Sample code
        
        ```python
        import commonsApi
        
        header = {}
        resp = commonsApi.get_api("https://api.postcodes.io/random/postcodes", header)
        
        print(resp.json())
        ```
        
        ## Raise if any issues/changes needed
         Please raise an issue [here](https://github.com/ManikandanRajendran/python-package-for-api-testing/issues) if anything
        
Keywords: api automation,api testing,api commons,python api
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Education
Description-Content-Type: text/markdown
