Skip to content

Generated URL Includes .json #35

@DougPlumley

Description

@DougPlumley

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions