marcgibbons / django-rest-swagger

Swagger Documentation Generator for Django REST Framework: deprecated
https://marcgibbons.com/django-rest-swagger/
BSD 2-Clause "Simplified" License
2.59k stars 602 forks source link

Listing 'OPTIONS' http method details on Swagger UI? #799

Open uedemir opened 5 years ago

uedemir commented 5 years ago

I am just wondering that is there any way to list 'OPTIONS' http method details on Swagger UI? I looked at the documentation but could not find any settings for it.

class SampleModelViewSet(viewsets.ModelViewSet):
    http_method_names = ['get', 'post', 'put', 'patch', 'delete', 'options']
    ...

Screenshot 2019-05-07 at 17 56 55

ShubhankarKapoor commented 5 years ago

@uedemir I am using version2.1.1, and it doesn't have the option of listing 'OPTIONS'.The only supported submit methods are the one you have listed in the image.