Class: Labimotion::LabimotionDoiAPI

Inherits:
Grape::API
  • Object
show all
Defined in:
lib/labimotion/apis/labimotion_doi_api.rb

Overview

DOI lifecycle (reserve + release) and publication metadata for LabIMotion templates: ElementKlass / SegmentKlass / DatasetKlass.

Constant Summary collapse

KLASS_TYPES =

rubocop:disable Metrics/BlockLength Grape route and helper DSL blocks are necessarily large.

Labimotion::TemplateDoiHelpers::KLASS_BY_TYPE.keys.freeze
PUBLIC_PUBLICATION_KEYS =

Publication fields exposed on the public (anonymous) DOI endpoints. contributor (singular) is kept for DOIs released before contributors became a list — their snapshot still carries it.

%w[title description authors contributors contributor references license].freeze