Skip to content

Commit

Permalink
- Updates endpoint path to include roles parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ekumachidi committed Mar 26, 2024
1 parent 97a5d6c commit 129cbee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/services/schools/dfe_sign_in_api/organisation_users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ def users
private

def endpoint
URI::HTTPS.build(
uri = URI::HTTPS.build(
host: Rails.configuration.x.dfe_sign_in_api_host,
path: ['/organisations', ukprn, 'users'].join('/')
path: "/organisations/#{ukprn}/users",
query: 'roles=approvers'
)
uri.to_s
end
end
end
Expand Down

0 comments on commit 129cbee

Please sign in to comment.