fix upload to PTO to use new upload API
When remerging PTO upload from piet-dev, upload to PTO needs to conform to the new PTO upload API.
@britram Where are the API docs?
@irl https://github.com/mami-project/pto-postgres/wiki/PAPI
see /raw/upload
On 25 Feb 2017, at 02:33, Iain Learmonth [email protected] wrote:
@britram Where are the API docs?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
This should be done as a new "command" under pathspider.cmd.ptoupload and should be run something like:
pspdr ptoupload results.ndjson
Maybe with options for specifying the api key, etc. or reading from environment var.
This will also need some configuration for the PTO raw data API base URL, since "the PTO" may have multiple instances.
New documentation for this (per conversation with @irl): https://github.com/mami-project/pto3-go/blob/master/doc/API.md