You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you call Alma::User.find('my_awesome_user'), it sends an HTTP request to https://[alma_url]/my_awesome_user?expand=fees,requests,loans.
If you don't want, say, fees, you can pass in a custom expand param with Alma::User.find('my_awesome_user', expand: 'requests,loans')
However, if you don't want any of these expansions, this method doesn't have an option to send the request to just regular https://[alma_url]/my_awesome_user.
Background and use case
We ran into a bug in the Alma API (mentioned here: https://code4lib.slack.com/archives/C0B3ELJQM/p1673289416145099) that caused an error status to be returned in certain cases when fees was expanded. In exploring the issue, we found that our app didn't actually need fees, requests or loans info.
We can still do our own "unexpanded" http request and pass it to Alma::User.new, but being able to send an "unexpanded" request with #find would be a nice convenience.
The text was updated successfully, but these errors were encountered:
When you call
Alma::User.find('my_awesome_user')
, it sends an HTTP request tohttps://[alma_url]/my_awesome_user?expand=fees,requests,loans
.If you don't want, say, fees, you can pass in a custom expand param with
Alma::User.find('my_awesome_user', expand: 'requests,loans')
However, if you don't want any of these expansions, this method doesn't have an option to send the request to just regular
https://[alma_url]/my_awesome_user
.Background and use case
We ran into a bug in the Alma API (mentioned here: https://code4lib.slack.com/archives/C0B3ELJQM/p1673289416145099) that caused an error status to be returned in certain cases when
fees
was expanded. In exploring the issue, we found that our app didn't actually need fees, requests or loans info.We can still do our own "unexpanded" http request and pass it to
Alma::User.new
, but being able to send an "unexpanded" request with#find
would be a nice convenience.The text was updated successfully, but these errors were encountered: