'Find all releases for repository' API method

4 views
Skip to first unread message

Chris Barr

unread,
Oct 12, 2011, 10:53:40 AM10/12/11
to beanstalkapp-...@googlegroups.com
In the Ruby example for 'find all releases for repository' method (http://api.beanstalkapp.com/release.html) it currently says...

Beanstalk::API::Release.find_all_for_environment(
environment_id=7,
"repo",
page=nil
)

...where releases can be found by environment - is supplying the environment_id allowed and accessible to the REST API? This is the only place where it is mentioned, and it'd be great if this is valid!

Chris

Chris Barr

unread,
Oct 17, 2011, 6:13:59 AM10/17/11
to beanstalkapp-...@googlegroups.com
It appears providing an environment_id parameter in the REST API is valid, just not yet documented.

eg. /api/{REPO}/releases.xml?environment_id={ENV_ID}

Chris

Ilya Sabanin

unread,
Oct 17, 2011, 7:48:56 AM10/17/11
to Beanstalk API Developers
Hey Chris,

Sorry for not responding to you earlier. Looking at the code now I see
that there's an environment filter available in that controller. I'm
glad you found it.

Ilya Sabanin
Lead Beanstalk Developer
http://twitter.com/isabanin
My timezone is GMT + 8
Reply all
Reply to author
Forward
0 new messages