We added a few cool features to Beanstalk API today that I wanted to share
1. JSON output is now available for all API methods.
2. We added new RepositoryImport resource.
3. As well as new Invitation resource.
4. color_label attribute is now available for ServerEnvironment.
So you can now import repositories (via URL only) and invite users. API docs were updated to reflect all the changes:
Happy hacking!
Ilya Sabanin
Lead Beanstalk Developer
http://twitter.com/isabanin
POST /api/repository_imports.xml
<repository-id>{REPOSITORY_ID}</repository-id>
<repository-import>
<uri>http://example.com/path/to/svn/file.dump</uri>
</repository-import>
--
You received this message because you are subscribed to the Google Groups "Beanstalk API Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/beanstalkapp-api-developers/-/ZP-3ob-Xm-4J.
To post to this group, send email to beanstalkapp-...@googlegroups.com.
To unsubscribe from this group, send email to beanstalkapp-api-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beanstalkapp-api-developers?hl=en.
--
You received this message because you are subscribed to the Google Groups "Beanstalk API Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/beanstalkapp-api-developers/-/OvcB__q2zdkJ.
POST /api/permissions.xml
<?xml version="1.0" encoding="UTF-8"?>
<permission>
<user-id type="integer">5638</user-id>
<repository-id type="integer">11</repository-id>
<write type="boolean">true</write>
<server-environment-id type="integer">362</server-environment-id>
</permission>
POST /api/permissions.xml?repository_id=11
<?xml version="1.0" encoding="UTF-8"?>
<permission>
<user-id type="integer">5638</user-id>
<write type="boolean">true</write>
<server-environment-id type="integer">362</server-environment-id>
</permission>
POST /api/permissions.xml
<?xml version="1.0" encoding="UTF-8"?>
<repository-id type="integer">11</repository-id>
<permission>
<user-id type="integer">5638</user-id>
<write type="boolean">true</write>
<server-environment-id type="integer">362</server-environment-id>
</permission>
POST /api/repository_imports.xml
<repository-import>
<repository-id>{REPOSITORY_ID}</repository-id>
<uri>http://example.com/path/to/svn/file.dump</uri>
</repository-import>
--
You received this message because you are subscribed to the Google Groups "Beanstalk API Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/beanstalkapp-api-developers/-/diOoaYjsrY4J.
http://cl.ly/3U3S1v0i1P1K2a1o0v2K
Ilya Sabanin
Lead Beanstalk Developer
http://twitter.com/isabanin
> --
> You received this message because you are subscribed to the Google Groups "Beanstalk API Developers" group.
http://ilya.bs.local/api/17/repository_imports.xml
Works for you guys?
Ilya Sabanin
Lead Beanstalk Developer
Ilya Sabanin
Lead Beanstalk Developer
--
You received this message because you are subscribed to the Google Groups "Beanstalk API Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/beanstalkapp-api-developers/-/ASHR2cgtkkkJ.