[Bioperl-l] Fwd: REST APIs for Cipres Web Portal

Chris Fields cjfields at uiuc.edu
Mon Jan 28 08:50:08 EST 2008


Googled it.

 From http://www.issociate.de/board/post/258535/LWP_-_multipart/form-data_file_upload_from_scalar_rather_than_local_file.html 
  :

my $ua = new LWP::UserAgent;
$response=$ua->request(POST $URL,
Content_Type => 'multipart/form-data',
Content => [ $PARAM => [undef,$FILENAME, Content => $CONTENTS ] ]);

Where $PARAM is the name of the parameter, $FILENAME is what you want
to call the file, and $CONTENTS is a scalar holding the contents of the
file.

Could probably use HTTP::Request in there, but whatever works.

chris

On Jan 28, 2008, at 7:42 AM, Hilmar Lapp wrote:

> Yep that's what I was thinking.
>
> BTW the API needs multipart/form-data encoding for input (due to  
> file upload); I'm assuming that that's supported well in LWP but if  
> anyone knows where to start digging for that the pointer would be  
> appreciated.
>
> 	-hilmar
>
> On Jan 28, 2008, at 1:04 AM, Chris Fields wrote:
>
>> We can certainly add it to the to-do list; just need to sort out  
>> the details (how often to allow posts, etc).  I guess we would want  
>> this in the Bio::Tools::Run namespace, same as RemoteBlast?
>>
>> chris
>>
>> On Jan 27, 2008, at 11:27 PM, Hilmar Lapp wrote:
>>
>>> Some folks may remember that CIPRES (http://www.phylo.org)  
>>> released their portal with access to remote execution of several  
>>> phylogenetic tree reconstruction programs in spring last year.
>>>
>>> It took a while but they have now also built a really nice REST- 
>>> based API that makes the service fully programmable instead of  
>>> screen-scraping 5 pages:
>>>
>>> http://8ball.sdsc.edu:8888/cipres-web/Home.do (click on REST API)
>>>
>>> It should be relatively straightforward to build the equivalent of  
>>> RemoteBlast on top of this. Would anyone be keen to take this on?
>>>
>>> 	-hilmar
>>>
>>> P.S. Sorry for the cross-posting - I thought this is relevant to  
>>> both communities. When responding in a project-specific way please  
>>> make sure you remove the list that is no longer pertinent.
>>>
>>>
>>> Begin forwarded message:
>>>
>>>> From: Lucie Chan <lcchan at sdsc.edu>
>>>> Date: January 21, 2008 6:22:22 PM EST
>>>> To: Hilmar Lapp <hlapp at duke.edu>
>>>> Cc: Mark Miller <mmiller at sdsc.edu>, Rutger Vos <rvosa at sfu.ca>,  
>>>> Terri Liebowitz <terri at sdsc.edu>, Paul Hoover <phoover at sdsc.edu>, mtholder at ku.edu
>>>> Subject: Re: REST APIs for Cipres Web Portal
>>>> Reply-To: lcchan at sdsc.edu
>>>>
>>>> Hilmar, et al.,
>>>>
>>>> I just released the first version of our REST Web Services API  
>>>> for job submission, and job status query, and
>>>> job result file retrieval. I'd like to get some feedbacks  
>>>> (issues, problems, improvements, suggestions, etc) from you. For  
>>>> documentation on how to access the services, check it out at:
>>>>
>>>> http://8ball.sdsc.edu:8888/cipres-web/Home.do and click on "REST  
>>>> API" below the "CIPRES PORTAL" banner.
>>>>
>>>> Lucie
>>>>
>>>
>>> -- 
>>> ===========================================================
>>> : Hilmar Lapp  -:-  Durham, NC  -:- hlapp at duke dot edu :
>>> ===========================================================
>>>
>>>
>>>
>>> _______________________________________________
>>> Bioperl-l mailing list
>>> Bioperl-l at lists.open-bio.org
>>> http://lists.open-bio.org/mailman/listinfo/bioperl-l
>>
>> Christopher Fields
>> Postdoctoral Researcher
>> Lab of Dr. Robert Switzer
>> Dept of Biochemistry
>> University of Illinois Urbana-Champaign
>>
>>
>>
>> _______________________________________________
>> Bioperl-l mailing list
>> Bioperl-l at lists.open-bio.org
>> http://lists.open-bio.org/mailman/listinfo/bioperl-l
>
> -- 
> ===========================================================
> : Hilmar Lapp  -:-  Durham, NC  -:- hlapp at duke dot edu :
> ===========================================================
>
>
>

Christopher Fields
Postdoctoral Researcher
Lab of Dr. Robert Switzer
Dept of Biochemistry
University of Illinois Urbana-Champaign





More information about the Bioperl-l mailing list