Skip to content

Api root ninja

David Burke requested to merge api-root-ninja into master

Move api root view to django ninja.

Adds unit tests to api root (we didn't have this!)

Because auth is None, we don't run the typical authentication flow. I moved some logic out of token auth to this view. It's a bit of a copy but also slightly different. In django ninja, we don't set request.auth when auth isn't required (we probably could, but it's simple as is and usually auth isn't optional)

Edited by David Burke

Merge request reports