Skip to content
This repository was archived by the owner on Jul 12, 2020. It is now read-only.
This repository was archived by the owner on Jul 12, 2020. It is now read-only.

Api method cannot receive *args #16

@eliadl

Description

@eliadl
def post_api(self, module, *args):
    print args       # will always be ()

The idea is that if I call site/api/machine/my_machine/delete then module is 'machine', and args should be ('my_machine', 'delete').

On another note, perhaps *kwargs could be integrated as well, using params.
(e.g. for site/api/action?key1=val1&key2=val2 then kwargs will be {'key1': 'val1', 'key2': 'val2'})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions