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 @@
{% trans "Using CURL" %}
    -F attach1=@Screenshot-1.png \
    -F attach2=@/my/path/to/Apprise.doc \
    http{% if request.is_secure %}s{% endif %}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/{{key}} + {% 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}}"

diff --git a/apprise_api/api/templates/welcome.html b/apprise_api/api/templates/welcome.html index 96cbd55..0592e83 100644 --- a/apprise_api/api/templates/welcome.html +++ b/apprise_api/api/templates/welcome.html @@ -99,6 +99,11 @@

{% trans "Stateless Endpoints" %}

    -F attach2=@Screenshot-2.png \
    "{{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/" +

+                    # {% 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/"
  • @@ -492,6 +497,12 @@

    {% trans "Persistent Store Endpoints" %}

        -F "tag=all" \
        -F "body=test body" \
        -F "title=test title" \
    +     "{{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/{{key}}" +
    
    +                        # {% 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):