@@ -719,8 +719,9 @@ status transitions.
719
719
720
720
### API Add order report
721
721
722
- A report for an order can be added by doing a PUT to the order
723
- report URI with the report content file as request body.
722
+ A report for an order can be added by doing a POST to the order
723
+ report URI with a request body containing the name of the report
724
+ and the contents of the report file.
724
725
725
726
The content type (MIME type) of the data is recorded with the
726
727
report. If it is ` text/html ` or ` text/plain ` , the content will be
@@ -732,6 +733,31 @@ For an example add report script, see
732
733
[ add_report.py] ( https://github.com/pekrau/OrderPortal/blob/master/api_scripts/add_report.py " ! ") .
733
734
734
735
736
+ ### API Edit order report
737
+
738
+ A report for an order can be edited by doing a POST to the order
739
+ report URI containing the report UUID, and a request body containing
740
+ the name of the report and the contents of the report file.
741
+
742
+ The content type (MIME type) of the data is recorded with the
743
+ report. If it is ` text/html ` or ` text/plain ` , the content will be
744
+ display in-line in the user's browser. Otherwise the content will be
745
+ downloaded as a file to the user's browser when the report button is
746
+ clicked.
747
+
748
+ For an example edit report script, see
749
+ [ edit_report.py] ( https://github.com/pekrau/OrderPortal/blob/master/api_scripts/edit_report.py " ! ") .
750
+
751
+
752
+ ### API Delete order report
753
+
754
+ A report for an order can be deleted by doing a DELETE to the order
755
+ report URI containing the report UUID. No request body should be used.
756
+
757
+ For an example delete report script, see
758
+ [ delete_report.py] ( https://github.com/pekrau/OrderPortal/blob/master/api_scripts/delete_report.py " ! ") .
759
+
760
+
735
761
## CLI
736
762
737
763
The Command Line Interface (CLI) allows system various maintenance
@@ -740,6 +766,8 @@ on the command line of the machine which hosts the OrderPortal
740
766
instance. This means that only users with accounts of sufficient
741
767
privilege on this machine can use it.
742
768
769
+ $ python3 cli.py --help
770
+
743
771
744
772
# Backup
745
773
@@ -813,7 +841,7 @@ The current installation procedure is described in the `README.md` for the
813
841
814
842
The implementation of Anubis is based on the following design decisions:
815
843
816
- - The back-end is written in Python using [ tornado] ( https://pypi.org/project/tornado/ " ! ") .
844
+ - The back-end is written in Python 3 using [ tornado] ( https://pypi.org/project/tornado/ " ! ") .
817
845
- The back-end generates HTML for display using the tornado template system.
818
846
- The front-end uses [ Bootstrap] ( https://getbootstrap.com/docs/3.4/ " ! ") .
819
847
- The back-end uses the No-SQL database [ CouchDB] ( https://couchdb.apache.org/ " ! ") .
0 commit comments