Skip to content

Conversation

stktyagi
Copy link
Member

@stktyagi stktyagi commented Jun 9, 2025

Checklist

  • I have read the OpenWISP Contributing Guidelines.
  • I have manually tested the changes proposed in this pull request.
  • I have written new test cases for new code and/or updated existing tests for changes to existing code.
  • I have updated the documentation.

Reference to Existing Issue

Closes #373.

Description of Changes

Integrated PrivateStorageDetailView within a DRF APIView and applied @extend_schema to enable proper Swagger documentation. This update ensures the CSV download endpoint is both functional and visible in the Swagger UI. Verified the endpoint works correctly and appears as expected in the API docs.

Screenshot

2025-06-09_13:21:19 84

stktyagi added 2 commits June 8, 2025 20:21
Wrapped PrivateStorageDetailView with DRF APIView and added @extend_schema
metadata for Swagger documentation generation. This ensures the CSV download endpoint is now visible and documented properly in the Swagger UI.

Fixes openwisp#373
Tested visibility of csv batch download endpoint on swagger and working of the endpoint via admin dashboad and curl.

Fixes openwisp#373
Added drf-spectacular in requirements-test.txt tp prevent build failure.

Fixes openwisp#373
@coveralls
Copy link

Coverage Status

coverage: 98.635% (-0.05%) from 98.683%
when pulling 976f522 on stktyagi:master
into 187e81b on openwisp:master.



# this is a drf wrapper view
@extend_schema(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

[change] Download batch CSV URL is inconsistent and not showing up in API docs
4 participants