OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • API client
« previous next »
  • Print
Pages: [1]

Author Topic: API client  (Read 23949 times)

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
API client
« 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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13702
  • Karma: 1178
    • View Profile
Re: API client
« Reply #1 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
Logged

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: API client
« Reply #2 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.
Logged

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: API client
« Reply #3 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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • API client
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2