Versions Compared

Key

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

...

Excerpt

GEODI provides rest api API services. You can use query results in your application by taking advantage of Geodi Query APIs. With GeodiQueryJS, you can display the results in any format you want, or use libraries such as Angular.js and Vue.js.

...

(warning)According to the use of Standard or Simple api API, you must have a Token , Geodi Project name and Geodi URL information.

...

You can display the query results in your application by including the GeodiQueryJS.js library into your project and specifying a template.  Template The template definition is the same with tools like Angular, Vue.js.  You can learn the object properties that you can use in the template from the debug console of the browser you are running or from the Geodi Query API - Document Search service document.

  •  {{data.DisplayName}} must be used in the HTML template content to to display the value of data.DisplayName.
  • For loop and conditions, the d:r tag and data/visible attribute values can be used.
    • data : used to determine the data to be circulated in the loop. The data value at the beginning of the template is the list of results. In each d:r tag, data is converted to the value of the data. if necessary, content outside the loop can be accessed with data.parentdata.
      • Examples
        • <d:r data="[0,1,2,3]">-{{data}}- </d:r> 
        • <d:r data="data"><d:r data=data.AditionalValues>{{data}} </d:r> </d:r>
    • visible: If the condition is valid, the d: r field is displayed or else content is ignored. Even if it is not used with data, the block in which it is contained is checked once with the data. If there is a check for each item in the loop, another element d: r must be created.
    • Examples
      • <d:r data="[0,1,2,3]"> <d:r visible="data>2"> -{{data}}- </d:r> </d:r> 
  • The HttpUtility helper class can be used for encode / decode operations.

...

Using tools like Angular.js and Vue.js

Rest api API results can be exported to any library that supports template rendering. The results from Geodi Query API ( Query )  can be shown by using the JSON as desired by the library. You can reach all the examples from: https://github.com/decesw/html/tree/master/DocumentQuery  Samples are running using our live demo projects. The token taken for the guest user is used.

...