Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Plugin API help - Specifically to create/update a firewall alias
« previous
next »
Print
Pages: [
1
]
Author
Topic: Plugin API help - Specifically to create/update a firewall alias (Read 1584 times)
CounterClops
Newbie
Posts: 1
Karma: 0
Plugin API help - Specifically to create/update a firewall alias
«
on:
June 05, 2023, 08:20:59 am »
Hey, so this could just be that I'm not too familiar with PHP (Most of my experience lines in Python).
I've been going through the documentation to try and find out how I would approach this, and even tried looking through the code for other plugins that might do something similar, but would someone be able to point me in the direction of how I could a plugin create and update a firewall alias?
Yes there is some documentation around sending a request to the API via HTTP, but is there a way to directly interact with these APIs direct via code? Even if you can point me to an example file where a plugin does this, I can probably experiment to figure it out from there.
I basically just want to make a PHP plugin that wraps around a python module, and then update a port alias with whatever value the python returns.
Thank you!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Plugin API help - Specifically to create/update a firewall alias