longclawshop / longclaw

A shop for Wagtail CMS
MIT License
395 stars 83 forks source link

api documentation #267

Open marojenka opened 5 years ago

marojenka commented 5 years ago

Description

Hi. I was trying to use drf-yasg to explore api and found it sometimes confusing. Namely in basket viewset in some methods (create would be easiest example) expected post data is different from class defined serializer hence autodocumentation gives wrong mock request.

Suggestion

I'm addicted to swagged documentation and willing to apply PR if you are interested in any of such solution. Sorry if I'm missing something.

JamesRamm commented 4 years ago

Hi thanks for the interest in the project. A PR is always welcome!