Skip to content

Make sure only corpus.xml uses <teiCorpus> #307

@cmil

Description

@cmil

The DraCor API currently silently assumes that there is only one teiCorpus document per corpus, and this document is the corpus.xml. The incident caused in conjunction with bug #306 made clear that this is currently not guaranteed and uploading a teiCorpus document as a regular play can break the API.

We need to make sure that the PUT /corpora/{corpusname}/plays/{playname}/tei and POST /corpora/{corpusname} endpoints only accept with a TEI root element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions