Sending API request : reg

19 views
Skip to first unread message

Logunath K

unread,
May 23, 2023, 12:18:19 AM5/23/23
to open...@googlegroups.com
Greetings...
                   Hii  team,
                                      I am planning to generate ticket system for routers notifications. If I want to send an API request from openwisp2 hosted server to ticket raising server. How and where can I edit notifications code in the openwisp2? Is it possible ?  If the device is not reachable for 10/15 mins I am planning to send notification through API for creating a ticket tracking system.  Do I have to write a new API or else we can use an already existing API for this.

 Thanks in advance

Federico Capoano

unread,
May 24, 2023, 2:00:15 PM5/24/23
to open...@googlegroups.com
I would write a receiver function listening to this signal:

Find more about Django signals:

You need to put the code in the python path. A good place to store it is in the same directory where the settings.py is located.
You can then import it in the settings or create a new simple django app dir which you load in INSTALLED_APPS.

Federico


--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAJy2ivoWpUbswYme%3DtByb%3DCwSNXTvYZOOVA7EtWULPO-bx5rKw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages