CenterForDigitalHumanities / TPEN-services

Services required by TPEN interfaces in order to interact with data
1 stars 0 forks source link

Initiate Layer Entity Class #50

Closed cubap closed 6 days ago

cubap commented 8 months ago

A module for a "Layer" is needed for use by the other services. In TPEN, a Layer is an ordered list of Annotation Pages that make up a layer of transcription for a Project. The module should support the methods needed for the api services.

A snip from the relevant document includes:

Single Annotation Page Collection as layer of project

  • Project URL
  • Sibling layers by reference
  • Parameterize
    • Only text blob, page arrays, lines arrays
    • Only set of image URLs
    • Embed referenced documents
    • HTML page turner document of a single layer

The module should be created and importable, but all the methods can just stub out. Tests come first and can simply expect(methodName).toBeInstanceOf("Function").

The clip above is a GET but there is also update and delete things to include.