Add list label templates method to Fluics API client [SCI-7045]

This commit is contained in:
Oleksii Kriuchykhin 2022-08-12 19:47:29 +02:00
parent 32c32e7b46
commit 08e654d5fb

View file

@ -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: {})