cancel
Showing results for 
Search instead for 
Did you mean: 

swagger “No operations defined in spec!” after using Django namespaceversioning for api

SOLVED
Highlighted
Frequent Visitor

swagger “No operations defined in spec!” after using Django namespaceversioning for api

I'm implementing Namespaceversioning for my application. Everything works fine, except swagger. I got following message (and no endpoints) on my swagger page:

"No operations defined in spec!"

The error occurs when I enable default_version. like this:

REST_FRAMEWORK = {
    ....
    "DEFAULT_VERSIONING_CLASS": "rest_framework.versioning.NamespaceVersioning",
    "DEFAULT_VERSION": "v1",
}

Probably because the url of my endpoints do change. I can't find how to edit them or where to change this to work let swagger work again.

my swagger settings:

Screenshot 2020-07-07 at 11.59.41.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: swagger “No operations defined in spec!” after using Django namespaceversioning for api

Hi @sgerrits! please note that the Django framework is not SmartBear's project, so, it is better to refer related questions to their support directly. Thank you.


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

1 REPLY 1
Highlighted
Community Manager

Re: swagger “No operations defined in spec!” after using Django namespaceversioning for api

Hi @sgerrits! please note that the Django framework is not SmartBear's project, so, it is better to refer related questions to their support directly. Thank you.


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

New Here?
Join us and watch the welcome video:
Top Kudoed Authors