You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Introduction

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

Method One

 

Method Two

 

Example

Example Graph

TEST_REST.json

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

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


Example Logs



  • No labels