Hello Talan,
I have gone through the API documentation and I cannot see anywhere for a /config/switch as a POST request. Is there a reason behind this? Is this something that will be implemented in an upgrade?
API call exists but is not documented. You can use your web browser
console to see how GUI deal with this API call when creating a new switch.
As an example, you can take a look at how we create switch and switch
group for our integration tests [1] using Venom.
- [1]
https://github.com/inverse-inc/packetfence/blob/d89849e243c03ca09d649e61a204651978678222/t/venom/pfservers/global_config/15_create_network_devices.yml
--
Nicolas Quiniou-Briand
[email protected] :: +1.514.447.4918 *140 :: https://inverse.ca
Inverse inc. :: Leaders behind SOGo (https://sogo.nu), PacketFence
(https://packetfence.org) and Fingerbank (http://fingerbank.org)
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users