Add endpoint to return the summary data for returned letters.

Returning the count of letters that are returned for each report date.
This commit is contained in:
Rebecca Law
2019-12-10 16:21:55 +00:00
parent 40a0c62926
commit c8364b4dc4
5 changed files with 15 additions and 8 deletions

View File

@@ -942,7 +942,7 @@ def check_if_reply_to_address_already_in_use(service_id, email_address):
)
@service_blueprint.route('/returned-letter-summary')
@service_blueprint.route('/<uuid:service_id>/returned-letter-summary', methods=['GET'])
def returned_letter_summary(service_id):
results = get_returned_letter_summary(service_id)