mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Merge pull request #4353 from okriuchykhin/ok_SCI_7045
Add list label templates method to Fluics API client [SCI-7045]
This commit is contained in:
commit
dac492cfd4
1 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,11 @@ module LabelPrinters
|
|||
)
|
||||
end
|
||||
|
||||
def list_templates
|
||||
group_name = ENV['FLUICS_TEMPLATES_GROUP'] || ''
|
||||
do_request(:get, '/get_templates', params: { query: { templateGroups: group_name } })
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def do_request(http_method, path, params: {})
|
||||
|
|
Loading…
Reference in a new issue