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

drest command line interface #21

Open
derks opened this issue Jul 18, 2012 · 0 comments
Open

drest command line interface #21

derks opened this issue Jul 18, 2012 · 0 comments
Assignees
Milestone

Comments

@derks
Copy link
Member

derks commented Jul 18, 2012

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
@ghost ghost assigned derks Jul 18, 2012
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