Skip to content

Commit

Permalink
Add selection of numeric operator, fixes for queries
Browse files Browse the repository at this point in the history
  • Loading branch information
beque committed Oct 17, 2024
1 parent ac6c491 commit 5981041
Show file tree
Hide file tree
Showing 7 changed files with 537 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/api/chemotion/search_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SearchAPI < Grape::API
optional :name, type: String
optional :advanced_params, type: Array do
optional :link, type: String, values: ['', 'AND', 'OR'], default: ''
optional :match, type: String, values: ['=', 'LIKE', 'ILIKE', 'NOT LIKE', 'NOT ILIKE', '>', '<', '>=', '@>', '<@'], default: 'LIKE'
optional :match, type: String, values: ['=', 'LIKE', 'ILIKE', 'NOT LIKE', 'NOT ILIKE', '>', '<', '>=', '<=', '@>', '<@'], default: 'LIKE'
optional :table, type: String, values: %w[samples reactions wellplates screens research_plans elements segments literatures]
optional :element_id, type: Integer
optional :unit, type: String
Expand Down
Loading

0 comments on commit 5981041

Please sign in to comment.