VNG-Realisatie / vng-api-common

Gedeelde code voor RESTful APIs
5 stars 12 forks source link

Allow getting api-root without version #144

Closed shea-maykinmedia closed 4 years ago

shea-maykinmedia commented 4 years ago

I'm using this in a project that does not have versioned APIs so api_root = reverse("api-root", kwargs={"version": get_major_version()}) throws an exception. It would be nice if this also worked with non-versioned apis.

This is just one possible solution to this but I'm sure there are other ways to do this. Let me know if you prefer a different solution :)

shea-maykinmedia commented 4 years ago

@annashamray Thanks for the review. I can't merge it myself so if you want merge it for me I will be happy :)