Re: [rt-users] New UX for RT: REST 2.0, json, and what?
"Felipe C. do R. Pinto" <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.request-tracker.devel |
|---|---|
| Message-ID | <CAA1VmgU2Wk1amaPrdGpgP2=p_i3tXjKVj65+57iEROyqh=35OA@mail.gmail.com> |
Good job. Just made a proof of concept with bootstrap, less and datables. Take a look plz. https://github.com/felipecrp/rtux Best regards, Felipe Felipe Curty do Rego Pinto [email protected] (21) 9418-0852 On Fri, Apr 4, 2014 at 3:42 AM, BÁLINT Bekény <[email protected]>wrote: > Hi Alex, > > We will manage the code on github soon. > > Now, it's really just an AngularJS "hello world": > > <!doctype html> > <html ng-app> > <head> > <title>AngularJS test: get ticket via RESTv2</title> > <script src=" > https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js > "></script> > <script> > function GetTicket($scope, $http) { > $scope.addTicket = function() { > var tid = $scope.TicketId; > $http.get("https://lajos:[email protected]/REST/2.0/ticket/" + tid). > success(function(data) { > $scope.ticketdata = data; > }); > }; > } > </script> > </head> > > <body> > <div ng-controller="GetTicket"> > <form ng-submit="addTicket()"> > <input ng-model="TicketId"> > <p>test id : {{TicketId}}</p> > <p>ID : {{ticketdata.id}}</p> > <p>LastUpdated : {{ticketdata.LastUpdated}}</p> > <p>Owner : {{ticketdata.Owner.id}}</p> > </form> > </div> > </body> > </html> > > -- > Bekeny > > On Thu, Apr 3, 2014 at 11:38 PM, Alex Vandiver <[email protected]>wrote: > >> On Thu, 2014-04-03 at 23:33 +0200, [email protected] wrote: >> >> > Since then we've got some "hello world" thing: >> > - an angular client asks the user for a ticket id (via ng-model input >> > field), >> > - the angularjs code asks RT for some ticket head data (via REST), >> > - gets JSON answer from RT, >> > - and shows to the user on the html. >> > >> > small step, but we are happy :) >> >> Is your source control public yet? >> - Alex >> >> >> -- >> RT Training - Dallas May 20-21 >> http://bestpractical.com/training >> > > > -- > RT Training - Dallas May 20-21 > http://bestpractical.com/training > -- RT Training - Dallas May 20-21 http://bestpractical.com/training