Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated URL Includes .json #35

Open
DougPlumley opened this issue Apr 20, 2020 · 0 comments
Open

Generated URL Includes .json #35

DougPlumley opened this issue Apr 20, 2020 · 0 comments

Comments

@DougPlumley
Copy link

Hi,

I was curious if there was a feature that would allow the default URL to be changed for a resource.

class Organization(pyactiveresource.activeresource.ActiveResource): _site = 'https://api.example.com/api/hr/' _primary_key = 'id' _headers = {"Authorization": f"Bearer {jwt}"} _primary_key = 'id'

When perform a .find() on this it's appending .json to the URL which isn't the convention for our URLs.

pyactiveresource.connection.ResourceNotFound: Not Found: https://api.example.com/api/hr/organizations/123456789.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant