@ GET @ Path ( "/{name}" ) public ReplyObject getDashboard ( @ PathParam ( "name" ) String name ) { try { ReplyObject ret = ReplyObject . success ( ) ; DashboardAO dashboard = getDashboardAPI ( ) . getDashboard ( name ) ; ret . addResult ( "dashboard" , dashboard ) ; return ret ; } catch ( APIException e ) { return ReplyObject . error ( e . getMessage ( ) ) ; } }
Returns a dashboard by its name .