API Versioning
From time to time breaking changes are made to the DocViewer API. To preserve backwards compatibility, and not break any of the clients relying on the API, a new version of the API endpoint is created to contain the changes. The old endpoint will continue to function, but clients will need to update to the new version to take advantage of new features.
The API version is included in the beginning of the url, and corresponds to the date the change was made (except the original version of each endpoint was /1/):
Example:
Old: PUT /1/sessions/{session_id}/annotations/{annotation_id}
New: PUT /2018-03-07/sessions/{session_id}/annotations/{annotation_id}