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:
Alex Kriuchykhin 2022-08-25 13:40:40 +02:00 committed by GitHub
commit dac492cfd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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