Re: [racket-users] Re: Experience with REST APIs in Racket

2018-04-12 Thread 'Paulo Matos' via Racket Users
Peter, Thank you very much for the reference to the vignette and simple-http package. simple-http seems to make it quite straightforward, therefore I will be giving it a go. Paulo Matos On 12/04/18 17:28, Peter Schmiedeskamp wrote: > Darren Newton's simple-http library >

[racket-users] Re: Experience with REST APIs in Racket

2018-04-12 Thread Peter Schmiedeskamp
Darren Newton's simple-http library (https://github.com/DarrenN/simple-http) vastly eases working with REST APIs and is very much modeled off of the http client libraries you'd expect to see in other language ecosystems. For some quick, useful, and opinionated perspective on REST services, I

Re: [racket-users] Re: Experience with REST APIs in Racket

2018-04-12 Thread 'Paulo Matos' via Racket Users
On 12/04/18 11:45, Jack Firth wrote: > I think this is an area where Racket's ecosystem could be significantly > improved. However, this would probably only be worth the investment for > those developing on both the client and server side of multiple > services. Do you have plans to develop your

[racket-users] Re: Experience with REST APIs in Racket

2018-04-12 Thread Jack Firth
I think this is an area where Racket's ecosystem could be significantly improved. However, this would probably only be worth the investment for those developing on both the client and server side of multiple services. Do you have plans to develop your own HTTP service APIs in Racket as well?

Re: [racket-users] Re: Experience with REST APIs in Racket

2018-04-11 Thread Philip McGrath
I can second having used net/url to call simple REST APIs, though apparently slightly differently than Alex: I typically use `http-sendrecv/url` to do the data-fetching (rather than `get-pure-port`, and I build instances of the `url` struct directly rather than using `format` and `string->url`.

[racket-users] Re: Experience with REST APIs in Racket

2018-04-11 Thread Alex Harsanyi
I used the built-in url package (http://docs.racket-lang.org/net/url.html) from Racket to fetch data from Wunderground weather API and it was simple enough that I did not feel the need for a separate REST library. I just used `format` to construct the URL, `get-pure-port` to fetch the data