Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

There are two ways to test for empty string, both using switch statements.

Method One

Code Block

Method Two

Code Block

Example

Example Graph

View file
nameTEST_REST.json
height250

This can be triggered by POSTING the below body to localhost:8181/restconf/operations/SLI-API:execute-graph

Code Block
{
    "input" : {
        "module-name" : "TEST",
        "rpc-name" : "REST",
        "mode" : "sync",
        "sli-parameter" : [
        {
            "parameter-name" : "NOT_USED",
            "string-value": "NOT_USED"
        }
        ]
    }
}


Image Added

Example Logs