Class: OPNsenseAPI::Core::CaptivePortal::Service
- Inherits:
-
Object
- Object
- OPNsenseAPI::Core::CaptivePortal::Service
- Includes:
- OPNsenseAPI::Core
- Defined in:
- lib/opnsense_api/core/captive_portal/service.rb
Constant Summary collapse
- BASE_PATH =
'/captiveportal/service'
Instance Method Summary collapse
- #del_template(uuid:) ⇒ Object
- #get_template(fileid: nil) ⇒ Object
- #reconfigure(body = {}) ⇒ Object
- #save_template(body = {}) ⇒ Object
- #search_templates(body = {}) ⇒ Object
Methods included from OPNsenseAPI::Core
Instance Method Details
#del_template(uuid:) ⇒ Object
26 27 28 |
# File 'lib/opnsense_api/core/captive_portal/service.rb', line 26 def del_template(uuid:) @client.post("#{BASE_PATH}/delTemplate/#{uuid}") end |
#get_template(fileid: nil) ⇒ Object
30 31 32 |
# File 'lib/opnsense_api/core/captive_portal/service.rb', line 30 def get_template(fileid: nil) @client.get("#{BASE_PATH}/getTemplate/#{fileid}") end |
#reconfigure(body = {}) ⇒ Object
34 35 36 |
# File 'lib/opnsense_api/core/captive_portal/service.rb', line 34 def reconfigure(body = {}) @client.post("#{BASE_PATH}/reconfigure", body) end |
#save_template(body = {}) ⇒ Object
38 39 40 |
# File 'lib/opnsense_api/core/captive_portal/service.rb', line 38 def save_template(body = {}) @client.post("#{BASE_PATH}/saveTemplate", body) end |
#search_templates(body = {}) ⇒ Object
42 43 44 |
# File 'lib/opnsense_api/core/captive_portal/service.rb', line 42 def search_templates(body = {}) @client.post("#{BASE_PATH}/searchTemplates", body) end |