Skip to content

Commit

Permalink
Add providers bulk API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
software-project committed Sep 10, 2018
1 parent 5155224 commit e4d8b14
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/pkg/
/spec/reports/
/tmp/
.idea
8 changes: 8 additions & 0 deletions lib/nds_api/url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ def search_providers(params = nil)
"#{providers}/search/findByCriteriaObject#{params ? "?#{params}" : ''}"
end

def search_providers_elastic
"#{providers}/search"
end

def providers
"#{base_url}/providers"
end
Expand Down Expand Up @@ -109,6 +113,10 @@ def provider_enrollments(uid)
"#{providers}/#{uid}/enrollments"
end

def bulk
"#{providers}/bulk"
end

##### REFERRALS #####

def referrals
Expand Down
2 changes: 1 addition & 1 deletion lib/nds_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module NdsApi
VERSION = '0.1.12'.freeze
VERSION = '0.1.13'.freeze
end

0 comments on commit e4d8b14

Please sign in to comment.