UNPKG

node-red-contrib-osem

Version:

node-red node for handling API calls to OpenScape Endpoint Management

47 lines (44 loc) 1.74 kB
<script type="text/javascript"> RED.nodes.registerType('osem-api',{ category: 'network', color:"rgb(17, 162, 219)", defaults: { path: {value:"/clients"}, state: {value:"GET"}, payload: {value:""} }, inputs:1, outputs:1, icon: "light.png", label: function() { return this.name||"OSEM API calls"; }, labelStyle: function() { return this.name?"node_label_italic":""; } }); </script> <script type="text/html" data-template-name="osem-api"> <div class="form-row"> <label for="node-input-path" style="width:40%;"><i class="fa fa-tag"></i> Path:</label> <input type="text" id="node-input-path" placeholder="" style="width:55%;"> </div> <div class="form-row"> <label for="node-input-method" style="width:40%;"><i class="fa fa-tasks"></i> Method:</label> <select type="text" id="node-input-method" style="width:55%;"> <option value="GET">GET</option> <option value="POST">POST</option> <option value="DELETE">DELETE</option> <option value="PUT">PUT</option> <option value="PATCH">PATCH</option> </select> </div> </script> <script type="text/html" data-help-name="osem-api"> <p>Provides a node for making API calls to OpenScape Endpoint Management using the integrated node-red instance</p> <ul> <li><code>msg.path</code> The API endpoint to call, including possible request parameters</li> <li><code>msg.method</code> "GET", "POST", "DELETE", "PUT", "PATCH"</li> <li><code>msg.payload</code> The payload data to be send in the request</li> </ul> </script>