caronc / apprise-api

A lightweight REST framework that wraps the Apprise Notification Library
https://hub.docker.com/r/caronc/apprise
MIT License
575 stars 49 forks source link

A typo in apprise-api website #171

Closed shimi-ke closed 4 months ago

shimi-ke commented 5 months ago

There are command examples on the Overview tab in the Configuration Manager.

I believe there is a typo in curl example. It uses "tags=all" subcommand but for me it only works with "tag=all".

I am on v0.9.9.

caronc commented 4 months ago

Are you certain this is an issue; I belive both tags and/or tag are both supported after this merge request.

Can you give me an example of the URL that is failing for you?

shimi-ke commented 4 months ago

Here you are:

➜  ~ curl -i -X POST -F "title=Test" -F "body=Test" -F "tag=pushover" http://192.168.200.101:18000/notify/apprise
HTTP/1.1 200 OK
Server: nginx/1.22.1
Date: Sun, 11 Feb 2024 19:32:17 GMT
Content-Type: text/plain
Content-Length: 150
Connection: keep-alive
Expires: Sun, 11 Feb 2024 19:32:17 GMT
Cache-Control: max-age=0, no-cache, no-store, must-revalidate, private
Set-Cookie: theme=light; expires=Mon, 10 Feb 2025 19:32:17 GMT; Max-Age=31536000; Path=/

2024-02-11 13:32:17,037 [INFO] apprise: Loaded 1 entries from memory://
2024-02-11 13:32:17,992 [INFO] apprise: Sent Pushover notification to iPhone.
➜  ~ 
➜  ~ curl -i -X POST -F "title=Test" -F "body=Test" -F "tags=pushover" http://192.168.200.101:18000/notify/apprise
HTTP/1.1 424 Failed Dependency
Server: nginx/1.22.1
Date: Sun, 11 Feb 2024 19:32:23 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 72
Connection: keep-alive
Expires: Sun, 11 Feb 2024 19:32:23 GMT
Cache-Control: max-age=0, no-cache, no-store, must-revalidate, private
Set-Cookie: theme=light; expires=Mon, 10 Feb 2025 19:32:23 GMT; Max-Age=31536000; Path=/

2024-02-11 13:32:23,530 [INFO] apprise: Loaded 1 entries from memory://

I run apprise-api in Docker using caronc/apprise:latest image.

caronc commented 4 months ago

This is now resolved in :edge branch :rocket:

shimi-ke commented 4 months ago

Works for me. Thank you.