Class: Tasks::ObjectAnnotations::BrowseAnnotationsController

Inherits:
ApplicationController
  • Object
show all
Includes:
TaskControllerConfiguration
Defined in:
app/controllers/tasks/object_annotations/browse_annotations_controller.rb

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#annotation_forObject



20
21
22
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 20

def annotation_for
  render({json: params})
end

#annotation_onObject



16
17
18
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 16

def annotation_on
  render({json: params})
end

#get_for_listObject



24
25
26
27
28
29
30
31
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 24

def get_for_list
  render(json: {
    "tag": "selected keyword)",
    "data_attribute": "selected predicate",
    "alternate_value": "selected alternate value",
    "notes": "notes"
  })
end

#get_model_listObject



41
42
43
44
45
46
47
48
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 41

def get_model_list
  render(
    json: {
      otu: 'by OTU',
      taxon_name: 'by Taxon Name',
      specimen: 'by Specimen'}
  )
end

#get_typeObject



8
9
10
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 8

def get_type
  render({json: params})
end

#get_type_listObject



12
13
14
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 12

def get_type_list
  render(json: AnnotationsController.types)
end

#indexObject

GET



5
6
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 5

def index
end

#process_submitObject



33
34
35
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 33

def process_submit
  render({json: params})
end

#set_datesObject



50
51
52
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 50

def set_dates
  render({json: params})
end

#set_logicObject



54
55
56
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 54

def set_logic
  render({json: params})
end

#set_modelObject



37
38
39
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 37

def set_model
  render({json: params})
end