From 14e62a7ec209c6eb55669b2f9ee2c16c9f28b1bc Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Thu, 11 Mar 2021 11:10:10 -0500 Subject: [PATCH] Modify the send_email api endpoint (in Configurator Tools section) to accept subject, message, and data. Subject, address and message are required. Data is not required. Message is in the body of the request. Subject, address, and data are in the query string. --- crc/api.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/crc/api.yml b/crc/api.yml index 9d6089a6..6a9ddad5 100644 --- a/crc/api.yml +++ b/crc/api.yml @@ -1035,17 +1035,37 @@ paths: type: string /send_email: parameters: - - name: address - in: query + - in: query + name: subject + required: true + description: The subject of the email. + schema: + type: string + - in: query + name: address required: true description: The address to send a test email to. schema: type: string - get: + - in: query + name: data + required: false + description: + The data to use in populating the message. + schema: + type: string + example: {"id_1": "value_1", "id_2": "value_2"} + put: operationId: crc.api.tools.send_email - summary: Sends an email so we can see if things work or not. + summary: Sends an email so we can see what the message will look like. tags: - Configurator Tools + requestBody: + required: true + content: + text/plain: + schema: + type: string responses: '201': description: Returns any error messages that might come back from sending the email.