Reading an entire table from Tcl

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Reading an entire table from Tcl

  • Creator
    Topic
  • #55243
    Mark Thompson
    Participant

      Historically, when Tcl needs to read an entire table I use the undocumented

      Code:

      TioLoad 1 tablename
      lassign [TioGetValueLists 1] inList outList


      Now that Cloverleaf is exposing more through documented API’s, is there a way to get the entire contents of a table using a supported API call?

      - Mark Thompson
      HealthPartners

    Viewing 2 reply threads
    • Author
      Replies
      • #84687
        Mark Thompson
        Participant

          The Cloverleaf 6.2 documentation provides 1 example of how to use Cloverleaf API calls.  (The example gets a list of Alert files available for a site.)

          Is anyone aware of documentation that details how to use these announced features?

          Quote:


          RESTful API

          With this API, you can create, edit, delete, and view Cloverleaf objects programmatically using the JSON format. The minimum required objects exposed through the API are:

          - Mark Thompson
          HealthPartners

        • #84688
          Rob Abbott
          Keymaster

            Hi Mark,

            The CLAPI documentation is all online, you will need to point your browser at

            https://localhost:15037/clapi

            If you’re not on the server, replace localhost with the address of your Cloverleaf server.

            The documentation is quite rich with examples, it’s also got an interactive testing tool if you select the “SwaggerIO” link.

            you will need at least Basic security enabled in order for the API to function.

            You might also have a look at the cloverleaf Wizard, it has a table editor built in that also allows you to import CSV files.

            https://localhost:15037/clwizard

            Rob Abbott
            Cloverleaf Emeritus

          • #84689
            Mark Thompson
            Participant

              Excellent!  Thanks Rob.

              - Mark Thompson
              HealthPartners

          Viewing 2 reply threads
          • The forum ‘Cloverleaf’ is closed to new topics and replies.