The following examples are used to illustrate how common tasks in the Public Access Viewer may be replicated in the integrated website by using API controls.
Finding and Viewing a Document using a Custom Query
- Use /api/CustomQuery to display a list to the user. The user can select which Custom Query to use for the search.
- Use /api/Keywords to get the list of searchable keywords based on the selected Custom Query. Since this is being used for a Custom Query, the long QueryID parameter is included in the payload.
- Use /api/CustomQuery/KeywordSearch to perform the search, making sure to pass in the Custom Query ID and search values entered by the user.
- Use /api/Document/[id] to get the Document image to display based on the results of the Custom Query keyword search.
Finding and Viewing a Document using Full-Text Search
- Use /api/DocumentType to display a list to the user. The user can select which Document Type to use for the search.
- Display search input fields by using the values for the /api/DocumentType/FullTextSearch payload.
- Use /api/DocumentType/FullTextSearch to execute the search based on the user's input.
- Display the full-text search results to the user.
- Use /api/Document/[id] to get the Document image to display based on the results of the full-text search.