mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 06:36:27 +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
|
end
|
||||||
|
|
||||||
|
def list_templates
|
||||||
|
group_name = ENV['FLUICS_TEMPLATES_GROUP'] || ''
|
||||||
|
do_request(:get, '/get_templates', params: { query: { templateGroups: group_name } })
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def do_request(http_method, path, params: {})
|
def do_request(http_method, path, params: {})
|
||||||
|
|
Loading…
Reference in a new issue