I think I found a potential solution for swagger: doc: ApiVersionAuthorization by blueyed · Pull Request #571 · marcgibbons/django-rest-swagger https://github.com/marcgibbons/django-rest-swagger/pull/571/files
Does anyone know if there's a way to do this for the Browsable API? On Thu, Nov 3, 2016 at 4:36 PM Robyn Smith <[email protected]> wrote: > Thanks for the response Xavier! > > Is there a method of versioning that would allow us to gain access to the > browsable API without injecting them ourselves with the browser? > > The other challenge is when using the "django-rest-swagger", the headers > used in the browser obviously don't inject the version. I was thinking of a > solution like using middleware to inject a requested version into the > header, but this seems like a messy option. > > Thanks! > > > ~Robyn > > > On Thu, Nov 3, 2016 at 4:28 PM Xavier Ordoquy <[email protected]> > wrote: > > Hi Robyn, > > > Le 3 nov. 2016 à 21:22, Robyn Smith <[email protected]> a écrit : > > > > Hello Everyone! > > > > DRF is amazing. Just a quick thank you to the community! > > > > I'm working on a project where we're building an API from scratch using > the Django REST Framework, and when working on the Proof of Concept, we > started running into challenges when we introduced Accept Header based > versioning. > > > > Does anyone know how versioning and the browsable API are supposed to > work? I'm not really able to find anything documented. > > I don’t think there’s anything yet in the browsable API that supports the > versioning through headers unfortunately. > I’m afraid in the short term you’ll have to insert them yourself with your > browser. > > Regards, > Xavier, > Linovia. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Django REST framework" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/django-rest-framework/x3xah0f9jps/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
