-
Notifications
You must be signed in to change notification settings - Fork 0
Description
At GET /project/new?URL we will support clickable links from other applications. For this reason, it must be a GET and contain all the information needed in the querystring. Obvious note that the URL in the querystring will be URLencoded and may need to be decoded for use as a fetch.
First, the user must be known, so this GET will interact with a login. The API will need to validate and fetch the link to create the project. If the link does not resolve to a known type (IIIF Manifest v2 or v3, or a supported Image format), the result should be a "Create Project from External Resource" page that is not yet ticketed.
Manifest: If the URL is a IIIF Manifest, it should be normalized to a Manifesto (See IIIF-Commons on GitHub) Manifest and fed to a ProjectFactory. The behavior of this factory is not clearly defined yet, but it will save a new Project record into the database and then redirect to the default transcription interface for that project.
Image: If the URL is an Image resource (jpg, tiff, png, webp, gif), a Project with a single page will be created, saved to the database, and then redirect to the default transcription interface.
After the GET resolves, the resulting page is the Project Management or Project Information page, unless there is an alternative in the querystring.