drf-nested-routers

repository·master·Indexed 23 days ago

https://github.com/alanjds/drf-nested-routers

A package providing support for nested resources within the Django REST Framework, enabling the definition of hierarchical URL structures for related models.

Tokens
359
Snippets
3
Records
4
Agent score
33%

What's inside drf-nested-routers

  1. Build and preview documentation with mkdocs

    master

    To manage the project documentation, install mkdocs and use the serve command to preview locally or build to generate static files.

    1. Install mkdocs: pip install mkdocs
    2. Preview documentation: mkdocs serve (runs at http://127.0.0.1:8000/)
    3. Build documentation: mkdocs build
    $ pip install mkdocs
    $ mkdocs serve
    $ mkdocs build
  2. Run tests for drf-nested-routers

    master

    To run the project's test suite, first install the testing requirements, then execute the test script or use tox to test against all supported Python and Django versions.

    Using the local test script:

    1. Install requirements: pip install -r requirements.txt
    2. Run tests: ./runtests.py

    Using tox: If you have tox installed globally, simply run tox to execute the full test matrix.

    $ pip install -r requirements.txt
    $ ./runtests.py
    
    # Or using tox
    $ tox