pathspider icon indicating copy to clipboard operation
pathspider copied to clipboard

fix upload to PTO to use new upload API

Open britram opened this issue 8 years ago • 5 comments

When remerging PTO upload from piet-dev, upload to PTO needs to conform to the new PTO upload API.

britram avatar Feb 21 '17 14:02 britram

@britram Where are the API docs?

irl avatar Feb 25 '17 10:02 irl

@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.

britram avatar Feb 28 '17 23:02 britram

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.

irl avatar Jun 01 '17 09:06 irl

This will also need some configuration for the PTO raw data API base URL, since "the PTO" may have multiple instances.

britram avatar Jan 31 '18 11:01 britram

New documentation for this (per conversation with @irl): https://github.com/mami-project/pto3-go/blob/master/doc/API.md

britram avatar Jul 03 '18 12:07 britram