From c1c4cf31d04df4780704389479c913965cd64db6 Mon Sep 17 00:00:00 2001 From: Marcin Jedras Date: Mon, 10 Sep 2018 18:55:11 +0200 Subject: [PATCH] Fix issue with bulk providers request --- lib/nds_api/method.rb | 2 +- lib/nds_api/url.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nds_api/method.rb b/lib/nds_api/method.rb index dd401bb..cfc7928 100644 --- a/lib/nds_api/method.rb +++ b/lib/nds_api/method.rb @@ -38,7 +38,7 @@ def action when 'providers' 'providers' end - "#{action}_#{object_type}" + "#{action}_#{object_type}#{method_split[2].present? ? "_#{method_split[2]}" : ''}" end private diff --git a/lib/nds_api/url.rb b/lib/nds_api/url.rb index aa9715c..6549c49 100644 --- a/lib/nds_api/url.rb +++ b/lib/nds_api/url.rb @@ -113,7 +113,7 @@ def provider_enrollments(uid) "#{providers}/#{uid}/enrollments" end - def bulk + def search_providers_bulk "#{providers}/bulk" end