Hello,

This is where the upload code is in the current mobile code
https://github.com/apache/incubator-taverna-mobile/blob/4daa91d3f42b5a4474303fd39c7a7ec1483cebff/app/src/main/java/org/apache/taverna/mobile/fragments/workflowdetails/WorkflowdetailFragment.java#L655

Cheers,

Ian

On 24 August 2016 at 14:40, Ian Dunlop <[email protected]> wrote:

> Hello,
>
> That upload code should already be available in the mobile app. Larry,
> myself and Finn spent a few hours figuring all that stuff out last time
> round.
> I have added an API call in the taverna-player-portal to get the runs for
> a user eg /users/1/runs. Pull request waiting in github (hint hint Finn). I
> even added some tests.
>
> Cheers,
>
> Ian
>
> On 24 August 2016 at 10:57, Finn Bacall <[email protected]>
> wrote:
>
>> On 23/08/2016 11:38, Sagar wrote:
>>
>>> Hi,
>>>
>>> I think there is some problem as mention below
>>>
>>> 1) How can I upload a workflow using API ?
>>>
>>
>> here's a gist of some Java code someone wrote to upload a workflow to the
>> portal:
>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
>>
>> Basically the format is:
>>
>>     { "workflow" : { "document" : 
>> "data:application/octet-stream;base64,<<<Insert
>> base64 encoded workflow here>>>" } }
>>
>> Finn
>>
>
>

Reply via email to