mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Restrict the running of reports via API to POST requests
This commit is contained in:
parent
87fb4af5cb
commit
21485ca6e2
0
docs/miscellaneous/reports.md
Normal file
0
docs/miscellaneous/reports.md
Normal file
@ -143,7 +143,7 @@ class ReportViewSet(ViewSet):
|
|||||||
|
|
||||||
return Response(serializer.data)
|
return Response(serializer.data)
|
||||||
|
|
||||||
@detail_route()
|
@detail_route(methods=['post'])
|
||||||
def run(self, request, pk):
|
def run(self, request, pk):
|
||||||
"""
|
"""
|
||||||
Run a Report and create a new ReportResult, overwriting any previous result for the Report.
|
Run a Report and create a new ReportResult, overwriting any previous result for the Report.
|
||||||
|
Loading…
Reference in New Issue
Block a user