1
Development and Code Review / How to user wireguard API (search, add, set)
« on: September 19, 2022, 03:06:03 pm »
Hi,
I am struggling with the wireguard API.
https://docs.opnsense.org/development/api/plugins/wireguard.html
Is there an example of how to use the search, set and get endpoints for the client service please ?
I do not understand how to pass the parameter of the search query and the data for add and search endpoint.
An example with curl command will really help me.
edit: I found the way to use all APIs except for search methods
Thanks !
I am struggling with the wireguard API.
https://docs.opnsense.org/development/api/plugins/wireguard.html
Is there an example of how to use the search, set and get endpoints for the client service please ?
I do not understand how to pass the parameter of the search query and the data for add and search endpoint.
An example with curl command will really help me.
edit: I found the way to use all APIs except for search methods
Thanks !