MichalKyjovsky / nswi153

This repository is intended for the semester project for the course of the Advanced Web Page development.
MIT License
3 stars 0 forks source link

Add Swagger documentation annotations for REST endpoints and correspo… #22

Closed bodommer closed 2 years ago

bodommer commented 2 years ago

Adding documentation by drf-yasg (current state-of-the-art library for Django/Swagger integration).

Documentation available after running the server with python manage.py runserver and accessing localhost URL: http://localhost:8000/api/docs/

The preview of response for some endpoints works weird (loads indefinitely) -> click above on 'Example value' and it loads immediately.