From 5130c8e1693ace68a1ebac93578bfdb69a9bc9f5 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 1 Feb 2020 09:03:31 +0000 Subject: [PATCH] Add docs for users reporting their transactions route --- apiserver/docs/source/api.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/apiserver/docs/source/api.rst b/apiserver/docs/source/api.rst index b016cd9..f8d87fd 100644 --- a/apiserver/docs/source/api.rst +++ b/apiserver/docs/source/api.rst @@ -573,6 +573,25 @@ Edit Transaction Same as PATCH but requires all fields present. +Report Transaction +++++++++++++++++++ + +.. http:post:: /transactions/(id)/report/ + + Allows users to report their own transactions for review. + + ``report_type`` will automatically be set to ``User Flagged``. + + :param id: The transaction's ID. + + :json report_memo: The reason for the report, required. + + :requestheader Authorization: ``Token `` + + **Response** + + :status 200: + Courses -------