Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

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

Open
uedemir opened this issue May 7, 2019 · 1 comment
Open

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

uedemir opened this issue May 7, 2019 · 1 comment

Comments

@uedemir
Copy link

uedemir commented May 7, 2019

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
Copy link

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants