diff --git a/apprise_api/api/templates/config.html b/apprise_api/api/templates/config.html index 53cb98e..c91ed27 100644 --- a/apprise_api/api/templates/config.html +++ b/apprise_api/api/templates/config.html @@ -115,6 +115,12 @@
+ curl -X POST \
+ -F "tag=all" \
+ -F "attach=https://raw.githubusercontent.com/caronc/apprise/master/apprise/assets/themes/default/apprise-logo.png" \
+ "{{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/{{key}}"
+ # {% blocktrans %}Send an web based file attachment to a Discord server:{% endblocktrans %}
+ curl -X POST -F 'urls=discord://credentials' \
+ -F "attach=https://raw.githubusercontent.com/caronc/apprise/master/apprise/assets/themes/default/apprise-logo.png" \
+ "{{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/"
+ # {% blocktrans %}Sends a notification to our endpoints with an attachment{% endblocktrans %}
+ curl -X POST \
+ -F "tag=all" \
+ -F "attach=https://raw.githubusercontent.com/caronc/apprise/master/apprise/assets/themes/default/apprise-logo.png" \
"{{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/{{key}}"
# {% blocktrans %}Notifies all URLs assigned the devops tag{% endblocktrans %}
diff --git a/apprise_api/api/tests/test_notify.py b/apprise_api/api/tests/test_notify.py
index a95a6d3..eb598bb 100644
--- a/apprise_api/api/tests/test_notify.py
+++ b/apprise_api/api/tests/test_notify.py
@@ -1043,11 +1043,9 @@ def test_notify_by_loaded_urls_with_json(self, mock_notify):
json_data = {
'body': 'test message',
- 'format': None,
}
# Same results for any empty string:
- json_data['format'] = ''
response = self.client.post(
'/notify/{}'.format(key),
data=json.dumps(json_data),
diff --git a/apprise_api/api/tests/test_stateless_notify.py b/apprise_api/api/tests/test_stateless_notify.py
index 507272f..2a32d66 100644
--- a/apprise_api/api/tests/test_stateless_notify.py
+++ b/apprise_api/api/tests/test_stateless_notify.py
@@ -293,7 +293,6 @@ def test_partial_notify(self, mock_notify):
assert response.status_code == 400
assert mock_notify.call_count == 0
-
@override_settings(APPRISE_RECURSION_MAX=1)
@mock.patch('apprise.Apprise.notify')
def test_stateless_notify_recursion(self, mock_notify):