API Url (or combination thereof) to get information on "Dashboard" page

I wonder is there an API url (or some combination of the other available URLs) that could give me the information that is available on the Dashboard page? Namely what deployments are on each environment for all projects? I would like to be able to make a JS call to the API to populate our overall dev team dashboard view (which has bugs, stories, builds and deployments all on one page).

Cheers
Pete

Our team pulls similar details via /api/projects/{project-id}/most-recent-deployment/

I was trying to play with that particular endpoint this morning (lovely REST api in that it tries to be “self describing”), but keep getting “Bad Request”

This is the URL I’m using…

http://buildserver:8080/api/projects/projects-1/most-recent-deployment/

which was given to me on

http://buildserver:8080/api/projects

Hi Peter, which version of Octopus are you using? A previous release had broken that link but it has since been fixed.

Paul

Hi Paul,

http://buildserver:8080/api:
@@@
{
“Application”: “Octopus”,
“Version”: “1.1.3.1410”,
“ApiVersion”: “2.0.0”,
“OperatingSystem”: “Microsoft Windows NT 6.0.6002 Service Pack 2”,
“Links”: {
“Self”: “/api”,
“Environments”: “/api/environments”,
“Machines”: “/api/machines”,
“Projects”: “/api/projects”,
“Feeds”: “/api/feeds”,
“Tasks”: “/api/tasks”
}
}
@@@

Additional information, the OS is actually Server 2008. IIS version 7.

Hi Peter,

Are any errors logged in the Windows event viewer when you get the bad request response?

Paul

There’s nothing in the standard Application or System log. The IIS logs have the following:

@@@
2012-11-09 13:41:07 192.168.7.29 GET /api/projects/projects-1/most-recent-deployment/ - 8080 EZETOP\pmcevoy 192.168.20.92 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.11+(KHTML,+like+Gecko)+Chrome/23.0.1271.64+Safari/537.11 400 0 0 960
@@@

Just to bump this again, I notice that the recent deployment URL ends with a slash - all other URLs don’t have a slash. However, even requesting without the slash, I get the 400 error. (interestingly any other misspelled URL gives a 404, so it would seem that it is hitting the app…)

Hi Peter,

Can you go to the Configuration->Storage tab in the Octopus web portal, then open the RavenDB admin UI? Once you are in, go to the Indexes tab, and click on the DeploymentsRecent index to see the results? Would you be able to mail me a screenshot of what you see there (paul@octopusdeploy.com)?

Paul

Sorry, Paul, I’m conscious that this is still pending. Tragically, our build server died the other day and our tech ops people have been trying to re-animate it. Will probably be later today before I can get this to you…

I’ve upgraded to 1.1.8.1430 and the “most-recent-deployment” API call now works beautifully.

Thanks Paul