Class: Labimotion::OntologyRootAPI
- Inherits:
-
Grape::API
- Object
- Grape::API
- Labimotion::OntologyRootAPI
- Defined in:
- lib/labimotion/apis/ontology_root_api.rb
Overview
Serves the stored subtree behind one "ontology-select" root, and lets a user refresh it.
The client sends the ontology_term string its field already holds and the
server derives the file path from it. Nothing about the naming scheme is
public, so it can change later without touching the frontend or migrating
anything — worst case the files are fetched again.
One root per request. A field may pin several, and the picker already walks them one at a time.