[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rt-devel
Subject:    Re: [rt-devel] [rt-users] New UX for RT: REST 2.0, json, and what?
From:       "Felipe C. do R. Pinto" <felipecrp () gmail ! com>
Date:       2014-04-06 2:57:43
Message-ID: CAA1VmgU2Wk1amaPrdGpgP2=p_i3tXjKVj65+57iEROyqh=35OA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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
felipecrp@gmail.com
(21) 9418-0852


On Fri, Apr 4, 2014 at 3:42 AM, BÁLINT Bekény <balint.bekeny@docca.hu>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:asdfasdf@dox4.docca.hu/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 <alexmv@bestpractical.com>wrote:
>
>> On Thu, 2014-04-03 at 23:33 +0200, akos.torok@docca.hu 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
>

[Attachment #5 (text/html)]

<div dir="ltr"><div><div>Good job. <br><br></div>Just made a proof of concept with \
bootstrap, less and datables. Take a look plz.<br><br><a \
href="https://github.com/felipecrp/rtux">https://github.com/felipecrp/rtux</a><br> \
<br></div>Best regards,<br>Felipe<br></div><div class="gmail_extra"><br \
clear="all"><div>Felipe Curty do Rego Pinto<br><a \
href="mailto:felipecrp@gmail.com">felipecrp@gmail.com</a><br>(21) 9418-0852</div> \
<br><br><div class="gmail_quote">On Fri, Apr 4, 2014 at 3:42 AM, BÁLINT Bekény <span \
dir="ltr">&lt;<a href="mailto:balint.bekeny@docca.hu" \
target="_blank">balint.bekeny@docca.hu</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div dir="ltr">Hi Alex,<div><br></div><div><div>We will \
manage the code on github soon.</div></div><div><br></div><div>Now, it&#39;s really \
just an AngularJS &quot;hello \
world&quot;:</div><div><br></div><div><div><div>&lt;!doctype html&gt;</div>

<div>&lt;html ng-app&gt;</div><div>    &lt;head&gt;</div><div><span \
style="white-space:pre-wrap">	</span>&lt;title&gt;AngularJS test: get ticket via \
RESTv2&lt;/title&gt;</div><div><span style="white-space:pre-wrap">	</span>&lt;script \
src=&quot;<a href="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js" \
target="_blank">https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js</a>&quot;&gt;&lt;/script&gt;</div>


<div><span style="white-space:pre-wrap">	</span>&lt;script&gt;</div><div><span \
style="white-space:pre-wrap">	</span>    function GetTicket($scope, $http) \
{</div><div><span style="white-space:pre-wrap">	</span>      $scope.addTicket = \
function() {</div>

<div><span style="white-space:pre-wrap">		</span>var tid = \
$scope.TicketId;</div><div><span \
style="white-space:pre-wrap">		</span>$http.get(&quot;<a \
href="https://lajos:asdfasdf@dox4.docca.hu/REST/2.0/ticket/" \
target="_blank">https://lajos:asdfasdf@dox4.docca.hu/REST/2.0/ticket/</a>&quot; + \
tid).</div>

<div>    <span style="white-space:pre-wrap">		</span>success(function(data) \
{</div><div>        <span style="white-space:pre-wrap">	</span>    $scope.ticketdata \
= data;</div><div>    <span style="white-space:pre-wrap">		</span>});</div>

<div><span style="white-space:pre-wrap">	</span>      };</div><div><span \
style="white-space:pre-wrap">	</span>    }</div><div><span \
style="white-space:pre-wrap">	</span>&lt;/script&gt;</div><div>    \
&lt;/head&gt;</div> <div><br></div><div>    &lt;body&gt;</div><div><span \
style="white-space:pre-wrap">	</span>&lt;div \
ng-controller=&quot;GetTicket&quot;&gt;</div><div><span \
style="white-space:pre-wrap">	</span>    &lt;form \
ng-submit=&quot;addTicket()&quot;&gt;</div>

<div><span style="white-space:pre-wrap">	</span>    &lt;input \
ng-model=&quot;TicketId&quot;&gt;</div><div><span \
style="white-space:pre-wrap">	</span>    &lt;p&gt;test id : \
{{TicketId}}&lt;/p&gt;</div><div><span style="white-space:pre-wrap">	</span>    \
&lt;p&gt;ID : {{<a href="http://ticketdata.id" \
target="_blank">ticketdata.id</a>}}&lt;/p&gt;</div>

<div><span style="white-space:pre-wrap">	</span>    &lt;p&gt;LastUpdated : \
{{ticketdata.LastUpdated}}&lt;/p&gt;</div><div><span \
style="white-space:pre-wrap">	</span>    &lt;p&gt;Owner : {{<a \
href="http://ticketdata.Owner.id" \
target="_blank">ticketdata.Owner.id</a>}}&lt;/p&gt;</div>

<div><span style="white-space:pre-wrap">	</span>&lt;/form&gt;</div><div><span \
style="white-space:pre-wrap">	</span>&lt;/div&gt;</div><div>    \
&lt;/body&gt;</div><div>&lt;/html&gt;</div></div></div><div><br></div><div \
class="gmail_extra">

<div>--<br>Bekeny</div><div><div class="h5"><br><div class="gmail_quote">On Thu, Apr \
3, 2014 at 11:38 PM, Alex Vandiver <span dir="ltr">&lt;<a \
href="mailto:alexmv@bestpractical.com" \
target="_blank">alexmv@bestpractical.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>On \
Thu, 2014-04-03 at 23:33 +0200, <a href="mailto:akos.torok@docca.hu" \
target="_blank">akos.torok@docca.hu</a> wrote:<br>


<br>
&gt; Since then we&#39;ve got some &quot;hello world&quot; thing:<br>
&gt; - an angular client asks the user for a ticket id (via ng-model input<br>
&gt; field),<br>
&gt; - the angularjs code asks RT for some ticket head data (via REST),<br>
&gt; - gets JSON answer from RT,<br>
&gt; - and shows to the user on the html.<br>
&gt;<br>
&gt; small step, but we are happy :)<br>
<br>
</div>Is your source control public yet?<br>
<span><font color="#888888"> - Alex<br>
</font></span><div><div><br>
<br>
--<br>
RT Training - Dallas May 20-21<br>
<a href="http://bestpractical.com/training" \
target="_blank">http://bestpractical.com/training</a><br> \
</div></div></blockquote></div><br></div></div></div></div> <br>--<br>
RT Training - Dallas May 20-21<br>
<a href="http://bestpractical.com/training" \
target="_blank">http://bestpractical.com/training</a><br></blockquote></div><br></div>




-- 
RT Training - Dallas May 20-21
http://bestpractical.com/training

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic