1. REST client demo
- Posted by jmduro May 22, 2023
- 612 views
I have put a REST client demo using my own libcurl and json wrappers on Github: https://github.com/jm-duro/rest_client
Jean-Marc
2. Re: REST client demo
- Posted by ghaberek (admin) May 22, 2023
- 607 views
I have put a REST client demo using my own libcurl and json wrappers on Github: https://github.com/jm-duro/rest_client
Very nice!
FYI I'm planning to absorb almost everything from Euphoria MVC into the release of Euphoria 4.2. Specifically curl.e, json.e, and logger.e are all related to what you're doing here.
I'd be grateful to hear input you might have from your experience with this, as well as any ideas you might have for a general-purpose REST client library.
-Greg
3. Re: REST client demo
- Posted by jmduro May 22, 2023
- 588 views
I did not play with curl.e and json.e from Euphoria MVC so I'm afraid I can't help much. I just tested MySQL and SQLite3 and of course logger about 6 monthes ago.
Jean-Marc
4. Re: REST client demo
- Posted by ghaberek (admin) May 22, 2023
- 594 views
I did not play with curl.e and json.e from Euphoria MVC so I'm afraid I can't help much. I just tested MySQL and SQLite3 and of course logger about 6 monthes ago.
I just meant if you had any lessons from having made your own that might be worthwhile. No worries.
-Greg
5. Re: REST client demo
- Posted by jmduro May 23, 2023
- 566 views
I built my own releases from scratch using the C source code cause I wanted to master every detail if something went wrong. I added some functions in curl.e which might be useful for beginners:
- public function curl_get(atom curl, sequence url, sequence headers={})
- public function curl_post(atom curl, sequence url, sequence headers, object body)
- public function curl_put(atom curl, sequence url, sequence headers, object body)
- public function curl_delete(atom curl, sequence url, sequence headers={})
- public function curl_patch(atom curl, sequence url, sequence headers, object body)
- public function curl_head(atom curl, sequence url, sequence headers={})
- public function curl_options(atom curl, sequence url, sequence headers={})
- public function curl_trace(atom curl, sequence url, sequence headers={})
Every request is logged. I use it to drive my pellet stove.
Jean-Marc