Metadata-Version: 2.1
Name: drf-link-navigation-pagination
Version: 0.0.4
Summary: Yet another pagination class for DRF to set host address by header
Home-page: https://github.com/juntossomosmais/drf-link-navigation-pagination
Author: Willian Antunes
Author-email: Willian Antunes <willian.lima.antunes@gmail.com>
License: MIT
Description: # DRF Link Navigation Pagination
        
        Yet another [thirdy party package for DRF Pagination](https://www.django-rest-framework.org/api-guide/pagination/). 
        
        If you want to change de host address located on `next` and `previous` fields, then this is the right thing to you. Take this body as an example:
        
        ```json
        {
          "links": {
            "next": "http://localhost/api/v1/entities/?limit=1&offset=2",
            "previous": "http://localhost/api/v1/entities/limit=1"
          },
          "count": 100,
          "results": [
            {
              "id": "bc6c6868-4e4d-4381-a785-f353ee7ecce5"
            }
          ]
        }
        ```
        
        Using a reverse proxy (like AWS API Gateway) to intermediate between your API, adding `X-Drf-Change-Domain=chumaco` header to the request will make the client receive the following:
        
        ```json
        {
          "links": {
            "next": "http://chumaco/api/v1/entities/?limit=1&offset=2",
            "previous": "http://chumaco/api/v1/entities/limit=1"
          },
          "count": 100,
          "results": [
            {
              "id": "bc6c6868-4e4d-4381-a785-f353ee7ecce5"
            }
          ]
        }
        ```
        
        # Configuration process
        
        Not yet fully available, but feel free to see our tests to get insights.
        
        ## Tests
        
        In order to execute the tests:
        
            pipenv run tox
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.7
Classifier: Framework :: Django :: 2.2
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
