OPNsense Forum

English Forums => Development and Code Review => Topic started by: fabian on February 03, 2016, 05:36:25 pm

Title: API client
Post by: fabian on February 03, 2016, 05:36:25 pm
Hi,

I just pushed my first classes of my API client.
https://github.com/fabianfrz/OPNsense_client_lib

Kind regards

fabian
Title: Re: API client
Post by: franco on February 03, 2016, 09:35:52 pm
Hi Fabian,

It looks good. Can you give a bit of insight in your motivation and goals for your client for us? :)


Cheers,
Franco
Title: Re: API client
Post by: fabian on February 03, 2016, 11:27:54 pm
This should work as a library which can be used by other programs, so it may be possible to build a command line interface as well as a graphical client which can be used by users who do not know a lot about firewalls.

For example, a server can use it to send an update command or a someone can create vouchers for clients from a custom interface.
Title: Re: API client
Post by: fabian on February 05, 2016, 02:20:08 pm
I added a sample code how this client library can be used here: https://github.com/fabianfrz/OPNsense-client-library-sample