jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Grid rowsdetails doesn't work Grid rowsdetails doesn't work #9674

    sergeyr
    Member

    the json is:

    var wikiJSON = {
    "id":"507d51c1e51bd01492f38e03",
    "key":"UMS-AuthenticationService-Login",
    "title":"Login to UMS Message",
    "description":"This is description for UMS Login message",
    "fields":[
    {
    "name":"username",
    "description":"represents username",
    "type":"String",
    "required":true
    },
    {
    "name":"password",
    "description":"represents password",
    "type":"String",
    "required":true
    }
    ],
    "jsonExample":[
    {
    "exampleName":"Login Request",
    "exampleJson":{
    "userName":"YODA116"
    }
    },
    {
    "exampleName":"Login Response",
    "exampleJson":{
    "token":{
    "secretKey":"F53615B2BBB5A99B9D416C5AA3954F19"
    },
    "ID":10002
    }
    }
    ],
    "diagramText":":actor :OpenAPI OpenAPI>getTemporaryAuthenticationTokenRequest(10001){actor>getTemporaryAuthenticationTokenResponse(10002)}",
    "author":"L. N. Tolstoy",
    "build":"1.0.0",
    "vresion":null
    }
    in reply to: JSON string rendering JSON string rendering #9670

    sergeyr
    Member

    thanks, that works , but I wonder if there is any way to render all the JSON as string, in particular – all the ‘exampleJson’ fields, like:

    {
    "token": {
    "secretKey": "F53615B2BBB5A99B9D416C5AA3954F19"
    },
    "ID": 10002
    }
    in reply to: JSON string rendering JSON string rendering #9645

    sergeyr
    Member
    var wikiJSON = {
    "id":"507d51c1e51bd01492f38e03",
    "key":"UMS-AuthenticationService-Login",
    "title":"Login to UMS Message",
    "description":"This is description for UMS Login message",
    "fields":[
    {
    "name":"username",
    "description":"represents username",
    "type":"String",
    "required":true
    },
    {
    "name":"password",
    "description":"represents password",
    "type":"String",
    "required":true
    }
    ],
    "jsonExample":[
    {
    "exampleName":"Login Request",
    "exampleJson":{
    "userName":"YODA116"
    }
    },
    {
    "exampleName":"Login Response",
    "exampleJson":{
    "token":{
    "secretKey":"F53615B2BBB5A99B9D416C5AA3954F19"
    },
    "ID":10002
    }
    }
    ],
    "diagramText":":actor :OpenAPI OpenAPI>getTemporaryAuthenticationTokenRequest(10001){actor>getTemporaryAuthenticationTokenResponse(10002)}",
    "author":"L. N. Tolstoy",
    "build":"1.0.0",
    "vresion":null
    }
Viewing 3 posts - 1 through 3 (of 3 total)