We recommend switching to the latest versions of Edge, Firefox, Chrome or Safari. Using Internet Explorer will result in a loss of website functionality.

Can Assure 9.3 call an API outside of the Assure app to extract data?

Comments

5 comments

  • Avatar
    Gerard Cafaro

    Assure can connect to REST API endpoints via layouts. Information on installing and using this plugin are in the following articles:

    REST API Web Service Layout Installation

    Creating a Rest Web Services Layout

    Several layouts can also have their Data Access Method option switched to "Networked Character/Byte Stream I/O" which allows HTTP/HTTPS locations to be used. For example, you can capture a Delimited file from a web server into a Delimited layout via this method. Depending on how your APIs are accessed and how the data is returned, a combination of these features can be used.

    0
    Comment actions Permalink
  • Avatar
    Ellen Mauss

    Is there a standard location for jar files?  Our IA.properties PLUGINS_DIR=  is blank.  Does a new folder/directory need to be created in components?  If so, what should this be called?

    0
    Comment actions Permalink
  • Avatar
    Gerard Cafaro

    Usually it's created at <install_home>/plugins, but it can be at any location and name.

    0
    Comment actions Permalink
  • Avatar
    Ellen Mauss

    Are we able to use properties files similar to what we do for database connections?  If so, is this entered in the Rest API EndPoint text box?  When using a properties, can we set Use Basic Auth to true and not enter a userid/password?

    0
    Comment actions Permalink
  • Avatar
    Gerard Cafaro

    Yes, this was added in Assure 9.2. For Web Service and External Service layouts, which includes the REST API layout, you can use the following syntax for your endpoint URL to reference a custom property file:

    ${@userprop_t('restapi.properties','base_rest_api_endpoint')}/api/v2/some_endpoint/

    The expression is contained within ${ } and can be embedded within a text value. 

    For user ID and passwords, you can use the Edit Network Credentials option within a Layout to create expressions via the UI. The ${ } notation isn't needed here, and the same type of logic to reference property files via userprop_t can be used.

    0
    Comment actions Permalink

Please sign in to leave a comment.