Rest API Extension deployment

Hi guys,
We were wondering if there is a way to deploy all the REST API Extensions at once for the Studio ?

Use Case : I import my workspace in a new local repository, I have 10 REST API Extensions.
For now I have to select the Extensions one by one, and select Deploy...

Can we do a global maven build ? How can I know the Maven Phase executed by the Studio when you click on Deploy... ?

Cheers :)

How to create rest api for community version

I want to create my custom rest api for community version but i couldn't find any information about it. All i can find precompiled zip files or how to documentation for subscribe editions. I extracted and changed example zip file then zipped again but i can't add as resource, i get zip file structure error.

Accept a file from REST API

I have an ASP.Net REST API that generate and download a file to browser.
My question is, how to store that file in a document variable via connectors in bonita?