scheme / scsh

A Unix shell embedded in scheme
Other
382 stars 36 forks source link

REST API #26

Closed snunez1 closed 9 years ago

snunez1 commented 10 years ago

Does anyone have any suggestions for interacting with a REST-ful API? There doesn't seem much in the way of support for this, and I don't have the time to build one from a socket interface.

Any modules that can be added to scsh for this?

roderyc commented 10 years ago

It would probably make more sense to use other newer unix tools purpose built for that task, like httpie and jq. Just like with any other unix tool, you'd use scsh when you needed to create complex pipelines and coerce scheme data to / from their input / output to do more complex work than what you would with simple pipelines in bash.

It makes more sense to me to use scsh to its strengths (leveraging unix and dealing with its shittier parts) rather than adding scheme specific apis to it. Especially with limited time and resources.

snunez1 commented 10 years ago

Yes, I kind of came to the same conclusion myself and began using curl. I¹ll check out httpie and jg though. Thanks

From: Roderic Morris notifications@github.com Reply-To: scheme/scsh <reply+i-36012358-f58c2d1cabe50f93b051ba0040a9a124df6f2f0a-7775472@reply.git hub.com> Date: Monday, June 23, 2014 at 18:40 To: scheme/scsh scsh@noreply.github.com Cc: Steve Nunez snunez@hortonworks.com Subject: Re: [scsh] REST API (#26)

It would probably make more sense to use other newer unix tools purpose built for that task, like httpie https://github.com/jakubroztocil/httpie and jq http://stedolan.github.io/jq/ . Just like with any other unix tool, you'd use scsh when you needed to create complex pipelines and coerce scheme data to / from their input / output to do more complex work than what you would with simple pipelines in bash.

It makes more sense to me to use scsh to its strengths (leveraging unix and dealing with its shittier parts) rather than adding scheme specific apis to it. Especially with limited time and resources.

‹ Reply to this email directly or view it on GitHub https://github.com/scheme/scsh/issues/26#issuecomment-46923198 .

CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.