Skip to content

[Feature] Updated parameter handling in routes.py #9

@DanielRubianes

Description

@DanielRubianes

When writing the route for update_record(), I found that the REST server considered my request invalid when I passed my parameters to the "params" field of the self.handler.put() call. The request would only work when I passed parameters to the "json" field. I created a quick workaround to make this work with a boolean parameter; see commit #9f26b93.

(As far as I understand this has something to do with PUT vs. GET requests. So far, params seems to only work with GET requests, but json seems to only work with PUT requests. I believe GET requests to not allow or should not be passed a body.)

We are going to need to re-structure the @register_route wrapper. Currently we are passing params=params to self.opts**, necessitating a workaround here.

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