edit.tosdr.org
edit.tosdr.org copied to clipboard
Write code to call ota.tosdr.org from phoenix
I need this for #1169 so doing a preliminary version of it in the ota-dev branch; we can create a cleaner version of it when you have time maybe today/tomorrow/next week @madoleary ?
I can do development using VSCode + docker compose and I found how to use logger.info to log things.
Now disabling the throttler because it's getting in the way.
OK phoenix side is now ready to post on my laptop, now firing up node server.js from https://github.com/tosdr/ota-engine/tree/crawl-api and then see if phoenix can do the http post there.
This is what it should be posting (see #1170 for more details):
curl -d'{"fetch":"http://example.com","select":"body"}' http://localhost:3000