Skip to content

drest command line interface #21

Description

@derks

Would be useful to have a command line app for quick testing, usage, etc:

$ drest get http://example.com/path/to/some/file -o some_file.out

# SET the baseurl
$ drest set example.com/api/v1/

# SET with ignoring SSL
$ drest set https://example.com/api/v1/ --ignore-ssl-validation

# GET example.com/api/v1/users/
$ drest get users

# GET example.com/api/v1/users/1/
$ drest get users/1

# POST example.com/api/v1/users/
$ drest post users "first_name='John', last_name='Doe'"

# PUT example.com/api/v1/users/1/
$ drest put users/1  "first_name=John, last_name=Doe"

# PATCH example.com/api/v1/users/1/
$ drest patch users/1 "first_name=John"

# DELETE example.com/api/v1/users/1/
$ drest delete users/1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions