Skip to content

Boss Examples

Tim Gion edited this page Oct 28, 2016 · 2 revisions

intern Boss API Examples

The Boss API examples are currently located here: https://github.com/jhuapl-boss/intern/tree/master/examples

The examples show how to manipulate the Boss data model structure and add metadata.

NOTE: If you want to run the examples, you will need to make modifications to the code and place a valid token in example.cfg. Required modifications are detailed in the section below.

Setup for Examples

Before running any of the examples, examples_setup.py must be run, at least once, to configure the Boss' data model to create the resources used by the examples. In addition, because collections must be unique, the collection name gray will need to be changed throughout the example files.