Using APIs within the Art Viewer

Exercise 3

Warning

This page is under construction and will be updated as the materials are posted online.

After exploring the use of databases to enhance the backend of the Art Viewer app, it is now time to harness the benefits of external APIs to offload processing. You will leverage the APIs to accomplish the following features:

The application in ex-3/app.R is very similar to the previous exercises, but with placeholders in the UI for you to add widgets supporting the search box, as well as to request a bounding box to appear.

Tip

You can find object annotation data withindata/object_annotation_df.rds. A description of the columns can be found in the resources page, but there is a simple data table in the application that displays row(s) for the object or set of objects with bounding box information.

When the user clicks a row in that table, DT will expose an input called input$object_table_rows_selected which can be used to determine which particular annotation data config was selected.