A module for a "Line" is needed for use by the other services. In TPEN, a Line is a single Annotation with an id that is referenced in an Annotation Page items array. This Annotation Page is a single Page in an Layer (Annotation Collection). The module should support the methods needed for the api services.
A snip from the relevant document includes:
Single TPEN annotation as a “line” contains Canvas fragment and transcription content
Consider membership reference to parent Annotation Page
Consider previous and next lines
Parameterize
Only text content as string
Only Image link as URL
Get parent/sibling/project
Embed referenced documents
Metadata only
HTML document
The module should be created and importable, but all the methods can just stub out. Tests come first and can simply expect that methodName typeof === "function".
The clip above is a GET but there is also update and delete things to include.
A module for a "Line" is needed for use by the other services. In TPEN, a Line is a single Annotation with an id that is referenced in an Annotation Page
items
array. This Annotation Page is a single Page in an Layer (Annotation Collection). The module should support the methods needed for the api services.A snip from the relevant document includes:
The module should be created and importable, but all the methods can just stub out. Tests come first and can simply expect that
methodName typeof === "function"
.The clip above is a GET but there is also update and delete things to include.