amy 0.3.1 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6be5923c41a5dd0a0b3e6e749fe87b33b5b8961d
4
- data.tar.gz: e2680a01def136f9eb2beb61734d4b36586cef9e
3
+ metadata.gz: 90d7fa823f8899fa16542099d65776d996b8408b
4
+ data.tar.gz: a52a4c96a040abc7ed7c44501f27a325399b3cb5
5
5
  SHA512:
6
- metadata.gz: f69b0495d3602162e541335b77669b7ff82566571d052bee640a23693422ecbad6a745f3a20beff27fd563b5621454f68473bffbda89bdd3ff84ed781111939d
7
- data.tar.gz: 28c1558e87a38a87c6874a28cd907e509597b3ddc8e2e4b5ca39a60a53fc0bcfb57089545152dae15bf2b90969418955ca7dad0fdd543d311e0d7fd9c20db677
6
+ metadata.gz: 86e7fae8238cb1b92d6a6fbbb54a92a3c6736255935687458a893d2946395738113beab607bf854addc614e839dbfb9eaa50d34d91702aae19530ad997d6cf76
7
+ data.tar.gz: 763dc7ee738a4caeb7373f04da7481fa5fa0a10319283b4e048d2277802a5c96aa7209c44525b058d9e2d54f1809346691d19bfe55d2260aac697f4880988840
@@ -109,7 +109,7 @@
109
109
 
110
110
  ResourceForm = (function() {
111
111
  function ResourceForm(method, config) {
112
- this.method = method;
112
+ this.method = method.replace(/[0-9]/g, '');
113
113
  this.config = config;
114
114
  return;
115
115
  }
@@ -1 +1 @@
1
- (function(){var t,e,o,n,r;n=function(){function t(){}return t.prototype.setup=function(t){var e,o;o=this,e={url:t+"?date="+(new Date).getTime(),type:"GET",dataType:"json",success:function(t){var e,n,r,i;$(".resources div").remove(),n=0,i=t.resources;for(r in i)e=i[r],r=o.add_resource(r,e,n,t.base_url),r.toggle(),n++;return o.add_resource_events(t),o.toggle_method_if_necessary()},error:function(){return $(".resources div").remove()}},$.ajax(e)},t.prototype.add_resource=function(t,o,n,r){return null==r&&(r=""),o=new e(t,o,n,r),o.build(),o},t.prototype.add_resource_events=function(){var t,e;t=function(){$(this).css("background","#f5f5f5"),$(this).children("div").children().css("color","black")},e=function(){$(this).css("background","#fff"),$(this).children("div").children().css("color","#999")},$(".resource").hover(t,e),$(".resource").click(function(){event.stopPropagation(),$(this).next().fadeToggle()})},t.prototype.toggle_method_if_necessary=function(){var t,e;t=window.location.hash.replace("!",""),t=t.replace(/\//g,"\\/"),t=t.replace(/:/g,"\\:"),e=t.split("#"),$("#"+e[1]+" + div .method."+e[2]+" .content").fadeToggle(),$("#"+e[1]+" + div .method."+e[2]+" .form").fadeToggle(),$("#"+e[1]).next().fadeToggle()},t.toggleMethods=function(t){event.stopPropagation(),$("#resource"+t).fadeToggle()},t.showJSON=function(){var t;event.stopPropagation(),t=$("#selector #key").val(),t&&window.open(t,"_self")},window.toggleMethods=t.toggleMethods,window.showJSON=t.showJSON,t}(),$(document).ready(function(){var t,e,o;t=new n,o=new r,o.toggle_by_class("content"),e=o.default_config_url(),$("#header #selector input").val(e),t.setup(e),$("#header #explore").click(function(){return t.setup($("#header #selector input").val())})}),o=function(){function t(t,e){this.method=t,this.config=e}return t.prototype.build=function(){var t,e,o;return t="",e=this.config.params||[],("get"===(o=this.method)||"options"===o||"head"===o)&&(t=this.add_form(e)),t},t.prototype.add_form=function(t){var e,o,n,r;for(e="<form>",n=0,r=t.length;r>n;n++)o=t[n],e+="<div class='field'>",e+="<label>:"+o[0]+"<small>("+o[1]+")</small></label>",e+="<input type='text' id='"+o[0]+"'></input>",e+="</div>";return e+='<input type="button" value="Submit"></input>',e+="</form>",e+='<textarea class="output"></textarea>'},t}(),t=function(){function t(t,e,o,n){this.method=t,this.config=e,this.base_url=o,this.i=n}return t.prototype.attach_to_form=function(){var t;t=this,$("#resource"+this.i+" ."+this.method+" .form input[type=button]").click(function(e){var o,n,r;return r=t.scrap_params(e),n=$(e.target).parent().siblings(".output"),o=t.config[t.method],t.execute_method(t.method.toUpperCase(),t.base_url,o,r,n)})},t.prototype.scrap_params=function(t){var e,o,n;return o=$(t.target).parentsUntil(".methods"),o=$($(o)[o.length-1]).parent().prev().attr("id"),e=$(t.target).parent().children(".field").children("input"),n={},$.each(e,function(t,e){n[$(e).attr("id")]=$(e).val()}),n},t.prototype.execute_method=function(t,e,o,n,r){var i,s,a,c;c=""+e+o.url;for(s in n)a=n[s],c=c.replace(":"+s,a);i={type:t,async:!0,url:c,success:function(t){r.text(JSON.stringify(t))}},$.ajax(i)},t}(),e=function(){function e(t,e,o,n){this.resource=t,this.config=e,this.i=o,this.base_url=n}return e.prototype.toggle=function(){$("#resource"+this.i).toggle()},e.prototype.build=function(){var e,o,n,r,i;o=this.build_html(this.resource,this.config,this.i),$(".resources").append(o),i=this.config.config;for(n in i)e=i[n],r=new t(n,this.config.config,this.base_url,this.i),r.attach_to_form();$("#resource"+this.i+" .content").toggle(),$("#resource"+this.i+" .form").toggle(),$("#resource"+this.i+" .method .url a").click(function(){return $(this).parent().parent().next().next().fadeToggle(),$(this).parent().parent().next().fadeToggle()})},e.prototype.build_html=function(t,e,o){var n;return n="<div class='resource' id='"+t+"'>",n+="<div class='name'> <a href='#!"+t+"'>"+t+"</a> </div>",n+="<div class='title'>"+e.title+"</div>",n+="<div class='menu'> <a href='#' onclick='toggleMethods("+o+")'>Show/Hide</a> | <a href='#' onclick='showJSON()'>Raw</a> </div>",n+="</div>",n+=this.add_section(t,e.config,e.config,o)},e.prototype.add_section=function(t,e,o,n){var r,i,s,a,c;s="<div class='methods' id='resource"+n+"'>";for(a in e)i=e[a],c=a.replace(/(\d+)/g,""),r=o[a.toLowerCase()].content,s+="<div class='method "+c+"'>",s+='<div class="header">',s+="<div class='name "+c+"'>"+c+"</div>",s+="<div class='url'><a href='#!"+t+"#"+a.toLowerCase()+"'>"+i.url+"</a></div>",s+="<div class='desc'>"+i.title+"</div>",s+="</div>",s+="<div class='form'>"+this.add_form(a.toLowerCase(),o[a.toLowerCase()])+"</div>",s+="<div class='content'>"+r+"</div>",s+="</div>";return s+="</div>"},e.prototype.add_form=function(t,e){var n;return n=new o(t,e),n.build()},e}(),r=function(){function t(){}return t.prototype.toggle_by_class=function(t){var e,o,n,r;for(o=document.getElementsByClassName(t),n=0,r=o.length;r>n;n++)e=o[n],console.log(e),$(e).toggle(!1)},t.prototype.default_config_url=function(){var t;return t=window.location.pathname,t=t.replace(t.substring(t.lastIndexOf("/")+1,t.length),""),""+window.location.origin+t+"data.json"},t}()}).call(this);
1
+ (function(){var t,e,o,r,n;r=function(){function t(){}return t.prototype.setup=function(t){var e,o;o=this,e={url:t+"?date="+(new Date).getTime(),type:"GET",dataType:"json",success:function(t){var e,r,n,i;$(".resources div").remove(),r=0,i=t.resources;for(n in i)e=i[n],n=o.add_resource(n,e,r,t.base_url),n.toggle(),r++;return o.add_resource_events(t),o.toggle_method_if_necessary()},error:function(){return $(".resources div").remove()}},$.ajax(e)},t.prototype.add_resource=function(t,o,r,n){return null==n&&(n=""),o=new e(t,o,r,n),o.build(),o},t.prototype.add_resource_events=function(){var t,e;t=function(){$(this).css("background","#f5f5f5"),$(this).children("div").children().css("color","black")},e=function(){$(this).css("background","#fff"),$(this).children("div").children().css("color","#999")},$(".resource").hover(t,e),$(".resource").click(function(){event.stopPropagation(),$(this).next().fadeToggle()})},t.prototype.toggle_method_if_necessary=function(){var t,e;t=window.location.hash.replace("!",""),t=t.replace(/\//g,"\\/"),t=t.replace(/:/g,"\\:"),e=t.split("#"),$("#"+e[1]+" + div .method."+e[2]+" .content").fadeToggle(),$("#"+e[1]+" + div .method."+e[2]+" .form").fadeToggle(),$("#"+e[1]).next().fadeToggle()},t.toggleMethods=function(t){event.stopPropagation(),$("#resource"+t).fadeToggle()},t.showJSON=function(){var t;event.stopPropagation(),t=$("#selector #key").val(),t&&window.open(t,"_self")},window.toggleMethods=t.toggleMethods,window.showJSON=t.showJSON,t}(),$(document).ready(function(){var t,e,o;t=new r,o=new n,o.toggle_by_class("content"),e=o.default_config_url(),$("#header #selector input").val(e),t.setup(e),$("#header #explore").click(function(){return t.setup($("#header #selector input").val())})}),o=function(){function t(t,e){this.method=t.replace(/[0-9]/g,""),this.config=e}return t.prototype.build=function(){var t,e,o;return t="",e=this.config.params||[],("get"===(o=this.method)||"options"===o||"head"===o)&&(t=this.add_form(e)),t},t.prototype.add_form=function(t){var e,o,r,n;for(e="<form>",r=0,n=t.length;n>r;r++)o=t[r],e+="<div class='field'>",e+="<label>:"+o[0]+"<small>("+o[1]+")</small></label>",e+="<input type='text' id='"+o[0]+"'></input>",e+="</div>";return e+='<input type="button" value="Submit"></input>',e+="</form>",e+='<textarea class="output"></textarea>'},t}(),t=function(){function t(t,e,o,r){this.method=t,this.config=e,this.base_url=o,this.i=r}return t.prototype.attach_to_form=function(){var t;t=this,$("#resource"+this.i+" ."+this.method+" .form input[type=button]").click(function(e){var o,r,n;return n=t.scrap_params(e),r=$(e.target).parent().siblings(".output"),o=t.config[t.method],t.execute_method(t.method.toUpperCase(),t.base_url,o,n,r)})},t.prototype.scrap_params=function(t){var e,o,r;return o=$(t.target).parentsUntil(".methods"),o=$($(o)[o.length-1]).parent().prev().attr("id"),e=$(t.target).parent().children(".field").children("input"),r={},$.each(e,function(t,e){r[$(e).attr("id")]=$(e).val()}),r},t.prototype.execute_method=function(t,e,o,r,n){var i,s,a,c;c=""+e+o.url;for(s in r)a=r[s],c=c.replace(":"+s,a);i={type:t,async:!0,url:c,success:function(t){n.text(JSON.stringify(t))}},$.ajax(i)},t}(),e=function(){function e(t,e,o,r){this.resource=t,this.config=e,this.i=o,this.base_url=r}return e.prototype.toggle=function(){$("#resource"+this.i).toggle()},e.prototype.build=function(){var e,o,r,n,i;o=this.build_html(this.resource,this.config,this.i),$(".resources").append(o),i=this.config.config;for(r in i)e=i[r],n=new t(r,this.config.config,this.base_url,this.i),n.attach_to_form();$("#resource"+this.i+" .content").toggle(),$("#resource"+this.i+" .form").toggle(),$("#resource"+this.i+" .method .url a").click(function(){return $(this).parent().parent().next().next().fadeToggle(),$(this).parent().parent().next().fadeToggle()})},e.prototype.build_html=function(t,e,o){var r;return r="<div class='resource' id='"+t+"'>",r+="<div class='name'> <a href='#!"+t+"'>"+t+"</a> </div>",r+="<div class='title'>"+e.title+"</div>",r+="<div class='menu'> <a href='#' onclick='toggleMethods("+o+")'>Show/Hide</a> | <a href='#' onclick='showJSON()'>Raw</a> </div>",r+="</div>",r+=this.add_section(t,e.config,e.config,o)},e.prototype.add_section=function(t,e,o,r){var n,i,s,a,c;s="<div class='methods' id='resource"+r+"'>";for(a in e)i=e[a],c=a.replace(/(\d+)/g,""),n=o[a.toLowerCase()].content,s+="<div class='method "+c+"'>",s+='<div class="header">',s+="<div class='name "+c+"'>"+c+"</div>",s+="<div class='url'><a href='#!"+t+"#"+a.toLowerCase()+"'>"+i.url+"</a></div>",s+="<div class='desc'>"+i.title+"</div>",s+="</div>",s+="<div class='form'>"+this.add_form(a.toLowerCase(),o[a.toLowerCase()])+"</div>",s+="<div class='content'>"+n+"</div>",s+="</div>";return s+="</div>"},e.prototype.add_form=function(t,e){var r;return r=new o(t,e),r.build()},e}(),n=function(){function t(){}return t.prototype.toggle_by_class=function(t){var e,o,r,n;for(o=document.getElementsByClassName(t),r=0,n=o.length;n>r;r++)e=o[r],console.log(e),$(e).toggle(!1)},t.prototype.default_config_url=function(){var t;return t=window.location.pathname,t=t.replace(t.substring(t.lastIndexOf("/")+1,t.length),""),""+window.location.origin+t+"data.json"},t}()}).call(this);
@@ -0,0 +1 @@
1
+ {"resources":{"/events":{"dir":"events","title":"Interface to query the events stored in the system","config":{"get":{"url":"/events/parser/:query","params":[["query","string"]],"title":"Query the event store directly","content":"\n<h3 id=\"query_the_event_store_directly\">Query the event store directly</h3>\n\n<ul>\n<li>\n<p>param <strong>query</strong> <em>String</em> The query</p>\n</li>\n\n<li>\n<p>return <em>Array</em> The set of events matching the query</p>\n</li>\n</ul>\n"},"get1":{"url":"/registered_sensors/:stream","params":[["stream","string"]],"title":"List of registered sensors for an stream","content":"\n<h3 id=\"the_list_of_registered_sensors_for_given_stream\">The list of registered sensors for given stream</h3>\n\n<ul>\n<li>\n<p>param <strong>stream</strong> <em>String</em> An stream name</p>\n</li>\n\n<li>\n<p>return <em>Array</em> The list of sensors registered</p>\n</li>\n</ul>\n"},"get2":{"url":"/events/:stream/:sensor","params":[["stream","string"],["sensor","string"]],"title":"Last events happened for a sensor","content":"\n<h3 id=\"list_the_last_events_happened_for_a_given_sensor\">List the last events happened for a given sensor</h3>\n\n<ul>\n<li>\n<p>param <strong>stream</strong> <em>String</em> An stream name</p>\n</li>\n\n<li>\n<p>param <strong>sensor</strong> <em>String</em> A sensor name</p>\n</li>\n\n<li>\n<p>return <em>Array</em> The set of events matching the query</p>\n</li>\n</ul>\n"},"get3":{"url":"/events/:sensor/:from/:to","params":[["sensor","string"],["from","date"],["to","date"]],"title":"Query the event store between two dates","content":"\n<h3 id=\"query_the_event_store_between_two_dates\">Query the event store between two dates</h3>\n\n<ul>\n<li>\n<p>param <strong>sensor</strong> <em>String</em> A sensor name</p>\n</li>\n\n<li>\n<p>param <strong>from</strong> <em>String</em> A date timestamp</p>\n</li>\n\n<li>\n<p>param <strong>to</strong> <em>String</em> A date timestamp</p>\n</li>\n\n<li>\n<p>return <em>Array</em> The set of events matching the query</p>\n</li>\n</ul>\n"}}},"/tz/:lat/:lon":{"dir":"tz","title":"Time zone query service","config":{"get":{"url":"/tz/:lat/:lon","params":[["lat","double"],["lon","double"]],"title":"Get's the time zone info for a location","content":"\n<h3 id=\"query_the_time_zone_data_for_a_given_longitud_and_latitud\">Query the time zone data for a given longitud and latitud</h3>\n\n<ul>\n<li>\n<p>param <strong>lat</strong> <em>Double</em> The latitud</p>\n</li>\n\n<li>\n<p>param <strong>lon</strong> <em>Double</em> The longitud</p>\n</li>\n\n<li>\n<p>return <em>Hash</em> The time zone info</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p><a href=\"http://example.com:1884/tz/50/30\">http://example.com:1884/tz/50/30</a></p>\n\n<p>[{tzid:Europe/Kiev,country:UA,ext:{gmtoff:2:02:04,updates:[[2:02:04,-,KMT,1924 May 2 # Kiev Mean Time],[2:00,-,EET,1930 Jun 21],[3:00,-,MSK,1941 Sep 20],[1:00,C-Eur,CET,1943 Nov 6],[3:00,Russia,MSK/MSD,1990],[3:00,-,MSK,1990 Jul 1 2:00],[2:00,-,EET,1992],[2:00,E-Eur,EET,1995],[2:00,EU,EET]]}}]</p>\n"},"get1":{"url":"/tz/:lat/:lon/ext","params":[["lat","double"],["lon","double"]],"title":"Get's the located timezone data, include extended","content":"\n<h3 id=\"query_the_time_zone_data_for_a_given_longitud_and_latitud_including_extended_data\">Query the time zone data for a given longitud and latitud, including extended data</h3>\n\n<p>The extended data include for example the timezone boundaries, etc.</p>\n\n<ul>\n<li>\n<p>param <strong>lat</strong> <em>Double</em> The latitud</p>\n</li>\n\n<li>\n<p>param <strong>lon</strong> <em>Double</em> The longitud</p>\n</li>\n\n<li>\n<p>return <em>Hash</em> The time zone info</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p><a href=\"http://example.com:1884/tz/50/30/ext\">http://example.com:1884/tz/50/30/ext</a></p>\n"}}},"/tz/paginated/:per_page/:page":{"dir":"tz_raw","title":"Time zone data service","config":{"get":{"url":"/tz/paginated/:per_page/:page","params":[["per_page","integer"],["page","integer"]],"title":"Get's the list of stored time zones properly paginated","content":"\n<h3 id=\"query_the_time_zones_stored_at_the_system\">Query the time zones stored at the system</h3>\n\n<ul>\n<li>\n<p>param <strong>per_page</strong> <em>Integer</em> The number of elements per page</p>\n</li>\n\n<li>\n<p>param <strong>page</strong> <em>Integer</em> The desired page</p>\n</li>\n\n<li>\n<p>return <em>Array</em> The time zones stored</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p><a href=\"http://example.com:1884/tz/paginated/10/3\">http://example.com:1884/tz/paginated/10/3</a></p>\n\n<p>[{tzid:America/Dominica,country:DM,ext:{gmtoff:4:05:36,updates:[[-4:00,-,AST]]}},{“tzid”:”America/St_Vincent”,”country”:”VC”,”ext”:{“gmtoff”:”4:04:56”,”updates”:[[“-4:04:56 -“,”KMT”,”1912”,” # Kingstown Mean Time”],[-4:00,-,AST]]}}]</p>\n"},"get1":{"url":"/tz/paginated/:per_page/:page/ext","params":[["per_page","integer"],["page","integer"]],"title":"Get's the list of zones paginated, include extended data","content":"\n<h3 id=\"query_the_time_zones_stored_at_the_system\">Query the time zones stored at the system</h3>\n\n<p>Include the extended dataset version</p>\n\n<ul>\n<li>\n<p>param <strong>per_page</strong> <em>Integer</em> The number of elements per page</p>\n</li>\n\n<li>\n<p>param <strong>page</strong> <em>Integer</em> The desired page</p>\n</li>\n\n<li>\n<p>return <em>Array</em> The time zones stored</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p><a href=\"http://example.com:1884/tz/paginated/10/3/ext\">http://example.com:1884/tz/paginated/10/3/ext</a></p>\n\n<p>[{tzid:America/Dominica,country:DM,ext:{gmtoff:4:05:36,updates:[[-4:00,-,AST]]}},{“tzid”:”America/St_Vincent”,”country”:”VC”,”ext”:{“gmtoff”:”4:04:56”,”updates”:[[“-4:04:56 -“,”KMT”,”1912”,” # Kingstown Mean Time”],[-4:00,-,AST]]}}]</p>\n"}}},"/orgs":{"dir":"orgs","title":"List of organizations within the system","config":{"get":{"url":"/orgs","title":"Get\"s all registered organizations within the system","content":"\n<h3 id=\"get_the_list_of_organizations_within_the_system\">Get the list of organizations within the system</h3>\n\n<ul>\n<li>return <em>Array</em> The list of organizations whithin the system</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p><a href=\"http://example.com:1884/orgs\">http://example.com:1884/orgs</a></p>\n\n<p><code>[\n {\n &quot;name&quot;: &quot;belectric_its&quot;,\n &quot;properties&quot;: {\n &quot;type&quot;: &quot;Grid&quot;\n },\n &quot;id&quot;: &quot;52f21f2d053b5b706a000003&quot;\n }\n]</code></p>\n"},"post":{"url":"/orgs","title":"Create a new organization whitin the system","content":"\n<h3 id=\"lets_you_create_a_new_organization_within_the_system\">Let&#39;s you create a new organization within the system</h3>\n\n<ul>\n<li>param <em>String</em> The organization name</li>\n\n<li>param <em>Hash</em> List of properties for this organization</li>\n\n<li>return <em>Hash</em> The newly created org</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X POST <a href=\"http://example.com:1884/orgs\">http://example.com:1884/orgs</a></p>\n"},"options":{"url":"/orgs","title":"The list of valid HTTP methods for this resource","content":"\n<h3 id=\"the_valid_methods_for_this_resouce\">The valid methods for this resouce</h3>\n\n<ul>\n<li>return <em>Array</em> The list of valid methods for this resource</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X OPTIONS <a href=\"http://localhost:1884/orgs\">http://localhost:1884/orgs</a></p>\n\n<p><code>[&quot;POST&quot;,&quot;GET&quot;,&quot;HEAD&quot;,&quot;OPTIONS&quot;,&quot;MONITOR&quot;]</code></p>\n"},"monitor":{"url":"/orgs","title":"Stream ofevent that inform you about whats going on","content":"\n<h3 id=\"open_an_stream_of_events_to_know_whats_going_on_within_this_resource\">Open an stream of events to know whats going on within this resource</h3>\n\n<ul>\n<li>return A server send events stream</li>\n</ul>\n"},"head":{"url":"/orgs","title":"Return just the headers, without any kind of body","content":"\n<h3 id=\"return_just_the_headers_of_this_resource\">Return just the headers of this resource</h3>\n\n<ul>\n<li>return <em>Array</em> The list of headers</li>\n</ul>\n"}}},"/orgs/:org":{"dir":"org","title":"Operations to work with an organization","config":{"get":{"url":"/orgs/:org","params":[["org","string"]],"title":"Get\"s data about the given organization","content":"\n<h3 id=\"get_detailes_information_about_an_organization\">Get detailes information about an organization</h3>\n\n<ul>\n<li>\n<p>param <em>String</em> The organization name</p>\n</li>\n\n<li>\n<p>return <em>Hash</em> The organization data</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p><a href=\"http://example.com:1884/orgs/belectric_its\">http://example.com:1884/orgs/belectric_its</a></p>\n\n<p>{“name”:”belectric_its”,”properties”:{“type”:”Grid”},”id”:”52f21f2d053b5b706a000003”}</p>\n"},"put":{"url":"/orgs/:org","params":[["org","string"]],"title":"Update the organization data","content":"\n<h3 id=\"update_the_organization_information\">Update the organization information</h3>\n\n<ul>\n<li>\n<p>param <em>String</em> The organization name</p>\n</li>\n\n<li>\n<p>return <em>Hash</em> The organization data</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X PUT <a href=\"http://example.com:1884/orgs/belectric_its\">http://example.com:1884/orgs/belectric_its</a></p>\n\n<p>{“name”:”belectric_its”,”properties”:{“type”:”Grid”},”id”:”52f21f2d053b5b706a000003”}</p>\n"},"delete":{"url":"/orgs/:org","params":[["org","string"]],"title":"Remove an organization and the related data","content":"\n<h3 id=\"remove_an_organization_including_all_related_data\">Remove an organization including all related data</h3>\n\n<ul>\n<li>\n<p>param <em>String</em> The organization name</p>\n</li>\n\n<li>\n<p>return <em>Hash</em> The deleted organization</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X DELETE <a href=\"http://example.com:1884/orgs/belectric_its\">http://example.com:1884/orgs/belectric_its</a></p>\n\n<p>{“name”:”belectric_its”,”properties”:{“type”:”Grid”},”id”:”52f21f2d053b5b706a000003”}</p>\n"},"options":{"url":"/orgs/:org","params":[["org","string"]],"title":"The list of valid HTTP methods for this resource","content":"\n<h3 id=\"the_valid_methods_for_this_resouce\">The valid methods for this resouce</h3>\n\n<ul>\n<li>return <em>Array</em> The list of valid methods for this resource</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X OPTIONS <a href=\"http://localhost:1884/orgs/belectric_its\">http://localhost:1884/orgs/belectric_its</a></p>\n\n<p><code>[&quot;POST&quot;,&quot;GET&quot;,&quot;HEAD&quot;,&quot;OPTIONS&quot;,&quot;MONITOR&quot;]</code></p>\n"},"monitor":{"url":"/orgs/:org","params":[["org","string"]],"title":"Stream ofevent that inform you about whats going on","content":"\n<h3 id=\"open_an_stream_of_events_to_know_whats_going_on_within_this_resource\">Open an stream of events to know whats going on within this resource</h3>\n\n<ul>\n<li>return A server send events stream</li>\n</ul>\n"},"head":{"url":"/orgs/:org","params":[["org","string"]],"title":"Return just the headers, without any kind of body","content":"\n<h3 id=\"return_just_the_headers_of_this_resource\">Return just the headers of this resource</h3>\n\n<ul>\n<li>return <em>Array</em> The list of headers</li>\n</ul>\n"}}},"/orgs/:org/maps":{"dir":"maps","title":"Operations to work with maps in the system","config":{"get":{"url":"/orgs/:org/maps","params":[["org","string"]],"title":"List the maps within an organization","content":"\n<h3 id=\"list_maps_within_an_organization\">List maps within an organization</h3>\n\n<ul>\n<li>\n<p>param <em>String</em> The organization name</p>\n</li>\n\n<li>\n<p>return <em>Array</em> The list of maps</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p><a href=\"http://example.com:1884/orgs/belectric_its/maps\">http://example.com:1884/orgs/belectric_its/maps</a></p>\n\n<pre><code>[{&quot;name&quot;:&quot;germany&quot;,&quot;properties&quot;:{&quot;type&quot;:&quot;SolarPower&quot;},&quot;organization&quot;:&quot;belectric_its&quot;,&quot;id&quot;:&quot;52f21f2d053b5b706a000004&quot;}]</code></pre>\n"},"post":{"url":"/orgs/:org/maps","params":[["org","string"]],"title":"Create a new map within an organization","content":"\n<h3 id=\"add_a_new_map_to_an_organization\">Add a new map to an organization</h3>\n\n<ul>\n<li>\n<p>param <em>String</em> The organization name</p>\n</li>\n\n<li>\n<p>return <em>Hash</em> The new map data</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X POST <a href=\"http://example.com:1884/orgs/belectric_its/maps\">http://example.com:1884/orgs/belectric_its/maps</a></p>\n\n<pre><code>{&quot;name&quot;:&quot;germany&quot;,&quot;properties&quot;:{&quot;type&quot;:&quot;SolarPower&quot;},&quot;organization&quot;:&quot;belectric_its&quot;,&quot;id&quot;:&quot;52f21f2d053b5b706a000004&quot;}</code></pre>\n"},"options":{"url":"/orgs/:org/maps","params":[["org","string"]],"title":"The list of valid HTTP methods for this resource","content":"\n<h3 id=\"the_valid_methods_for_this_resouce\">The valid methods for this resouce</h3>\n\n<ul>\n<li>return <em>Array</em> The list of valid methods for this resource</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X OPTIONS <a href=\"http://localhost:1884/orgs/belectric_its/maps\">http://localhost:1884/orgs/belectric_its/maps</a></p>\n\n<p><code>[&quot;POST&quot;,&quot;GET&quot;,&quot;HEAD&quot;,&quot;OPTIONS&quot;,&quot;MONITOR&quot;]</code></p>\n"},"monitor":{"url":"/orgs/:org/maps","params":[["org","string"]],"title":"Stream ofevent that inform you about whats going on","content":"\n<h3 id=\"open_an_stream_of_events_to_know_whats_going_on_within_this_resource\">Open an stream of events to know whats going on within this resource</h3>\n\n<ul>\n<li>return A server send events stream</li>\n</ul>\n"},"head":{"url":"/orgs/:org/maps","params":[["org","string"]],"title":"Return just the headers, without any kind of body","content":"\n<h3 id=\"return_just_the_headers_of_this_resource\">Return just the headers of this resource</h3>\n\n<ul>\n<li>return <em>Array</em> The list of headers</li>\n</ul>\n"}}},"/orgs/:org/maps/:map":{"dir":"map","title":"Operations to work with a map","config":{"get":{"url":"/orgs/:org/maps/:map","params":[["org","string"],["map","string"]],"title":"Get info about a map","content":"\n<h3 id=\"gets_the_data_stored_about_a_given_map\">Get&#39;s the data stored about a given map</h3>\n\n<ul>\n<li>\n<p>param <em>String</em> The organization name</p>\n</li>\n\n<li>\n<p>param <em>String</em> A map name</p>\n</li>\n\n<li>\n<p>return <em>Hash</em> The stored map data</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p><a href=\"http://example.com:1884/orgs/belectric_its/maps/germany\">http://example.com:1884/orgs/belectric_its/maps/germany</a></p>\n\n<p>{“name”:”germany”,”properties”:{“type”:”SolarPower”},”organization”:”belectric_its”,”id”:”52f21f2d053b5b706a000004”}</p>\n"},"put":{"url":"/orgs/:org/maps/:map","params":[["org","string"],["map","string"]],"title":"Update a map within an organization","content":"\n<h3 id=\"update_the_stored_information_about_a_given_map\">Update the stored information about a given map</h3>\n\n<ul>\n<li>\n<p>param <em>String</em> The organization name</p>\n</li>\n\n<li>\n<p>param <em>String</em> The map name</p>\n</li>\n\n<li>\n<p>return <em>Hash</em> The new map data</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X PUT <a href=\"http://example.com:1884/orgs/belectric_its/maps/germany\">http://example.com:1884/orgs/belectric_its/maps/germany</a></p>\n\n<p>{“name”:”germany”,”properties”:{“type”:”SolarPower”},”organization”:”belectric_its”,”id”:”52f21f2d053b5b706a000004”}</p>\n"},"delete":{"url":"/orgs/:org/maps/:map","params":[["org","string"],["map","string"]],"title":"Remove a map within an organization","content":"\n<h3 id=\"remove_a_map_including_all_related_data\">Remove a map including all related data</h3>\n\n<ul>\n<li>\n<p>param <em>String</em> The organization name</p>\n</li>\n\n<li>\n<p>param <em>String</em> The map name</p>\n</li>\n\n<li>\n<p>return <em>Hash</em> The deleted map data</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X DELETE <a href=\"http://example.com:1884/orgs/belectric_its/maps/germany\">http://example.com:1884/orgs/belectric_its/maps/germany</a></p>\n\n<p>{“name”:”germany”,”properties”:{“type”:”SolarPower”},”organization”:”belectric_its”,”id”:”52f21f2d053b5b706a000004”}</p>\n"},"options":{"url":"/orgs/:org/maps/:map","params":[["org","string"],["map","string"]],"title":"The list of valid HTTP methods for this resource","content":"\n<h3 id=\"the_valid_methods_for_this_resouce\">The valid methods for this resouce</h3>\n\n<ul>\n<li>return <em>Array</em> The list of valid methods for this resource</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X OPTIONS <a href=\"http://localhost:1884/orgs/belectric_its/maps\">http://localhost:1884/orgs/belectric_its/maps</a></p>\n\n<p><code>[&quot;POST&quot;,&quot;GET&quot;,&quot;HEAD&quot;,&quot;OPTIONS&quot;,&quot;MONITOR&quot;]</code></p>\n"},"monitor":{"url":"/orgs/:org/maps/:map","params":[["org","string"],["map","string"]],"title":"Stream ofevent that inform you about whats going on","content":"\n<h3 id=\"open_an_stream_of_events_to_know_whats_going_on_within_this_resource\">Open an stream of events to know whats going on within this resource</h3>\n\n<ul>\n<li>return A server send events stream</li>\n</ul>\n"},"head":{"url":"/orgs/:org/maps/:map","params":[["org","string"],["map","string"]],"title":"Return just the headers, without any kind of body","content":"\n<h3 id=\"return_just_the_headers_of_this_resource\">Return just the headers of this resource</h3>\n\n<ul>\n<li>return <em>Array</em> The list of headers</li>\n</ul>\n"}}},"/orgs/:org/maps/:map/groups":{"dir":"groups","title":"Operations to work with groups within a map","config":{"get":{"url":"/orgs/:org/maps/:map/groups","params":[["org","string"],["map","string"]],"title":"List all groups for a map","content":"\n<h3 id=\"list_all_groups_for_a_given_map\">List all groups for a given map</h3>\n\n<ul>\n<li>\n<p>param <em>String</em> The organization name</p>\n</li>\n\n<li>\n<p>param <em>String</em> A map name</p>\n</li>\n\n<li>\n<p>return <em>Array</em> All groups data for this map</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p><a href=\"http://example.com:1884/orgs/belectric_its/maps/germany/groups\">http://example.com:1884/orgs/belectric_its/maps/germany/groups</a></p>\n\n<p>[{name:adensis,group:{type:FeatureCollection,features:{type:Feature,geometry:{type:Polygon, coordinates:[[51.09038837084152,13.70301693677902,51.09041717084152,13.70329293677902,51.09040127084152,13.70329743677902, 51.09040307084152,13.70331468677902,51.090371270841516,13.70332368677902,51.09034067084151,13.70303043677902, 51.09038837084152,13.70301693677902]},”properties”:{“zoom_level”:20,”stream”:”http://80.148.29.35:2002/streams/AdensisSolTherm”}}]}, “areas”:{“type”:”FeatureCollection”,”features”:[{type:Feature,geometry:{type:Polygon,coordinates:[[51.09038837084152,13.70301693677902], [51.09041717084152,13.70329293677902],[51.09040127084152,13.70329743677902],[51.09040307084152,13.70331468677902],[51.090371270841516,13.70332368677902], [51.09034067084151,13.70303043677902],[51.09038837084152,13.70301693677902]]},”properties”:{}}]},”map”:”52f21f2d053b5b706a000004”, “id”:”52f21f2d053b5b706a000024”},{“name”:”kitzingen”,”group”:{“type”:”FeatureCollection”,”features”:[{type:Feature,geometry:{type:Polygon, coordinates:[[49.73289852575426,10.14984369277954,49.733605850009155,10.14937162399292,49.73357811199727,10.148921012878418, 49.73320364728537,10.147376060485838,49.73282917968419,10.145251750946045,49.73410513151195,10.144844055175781,49.73388322925593,10.142912864685059, 49.734535064245705,10.142741203308105,49.73441024545732,10.141818523406982,49.73438250790518,10.140960216522217,49.733702932925866,10.137591361999512, 49.73371680189811,10.13711929321289,49.733605850009155,10.136840343475342,49.73273209501968,10.136754512786865,49.73269048724684,10.135853290557861, 49.73226053817238,10.13613224029541,49.73151158552748,10.135982036590576,49.730526833906964,10.135681629180908,49.72979172460325,10.135810375213623, 49.72954206230715,10.135917663574219,49.72990962024117,10.136754512786865,49.72929239872686,10.138374567031859,49.72920224211841,10.138428211212158, 49.72863355811338,10.137934684753418,49.72831453733984,10.138707160949707,49.72810647918403,10.139458179473877,49.72800244977173,10.140230655670166, 49.727995514469626,10.141174793243408,49.72800244977173,10.141700506210327,49.72800938507281,10.142258405685425,49.728217443644766,10.14261245727539, 49.72852952983064,10.142955780029297,49.728709845379036,10.143202543258667,49.72883467882785,10.14414668083191,49.728605817259776,10.144844055175781, 49.72890403060513,10.145412683486938,49.730138475662,10.14711856842041,49.731567063897494,10.14887809753418,49.73249631716874,10.149736404418945, 49.73289852575426,10.14984369277954]]},”properties”:{“zoom_level”:15,”stream”:”http://80.148.29.35:2002/streams/AdensisJDL”}}]}, “areas”:{“type”:”FeatureCollection”,”features”:[{type:Feature,geometry:{type:Polygon,coordinates:[[49.73289852575426,10.14984369277954], [49.733605850009155,10.14937162399292],[49.73357811199727,10.148921012878418],[49.73320364728537,10.147376060485838],[49.73282917968419,10.145251750946045], [49.73410513151195,10.144844055175781],[49.73388322925593,10.142912864685059],[49.734535064245705,10.142741203308105],[49.73441024545732,10.141818523406982], [49.73438250790518,10.140960216522217],[49.733702932925866,10.137591361999512],[49.73371680189811,10.13711929321289],[49.733605850009155,10.136840343475342], [49.73273209501968,10.136754512786865],[49.73269048724684,10.135853290557861],[49.73226053817238,10.13613224029541],[49.73151158552748,10.135982036590576], [49.730526833906964,10.135681629180908],[49.72979172460325,10.135810375213623],[49.72954206230715,10.135917663574219],[49.72990962024117,10.136754512786865], [49.72929239872686,10.138374567031859],[49.72920224211841,10.138428211212158],[49.72863355811338,10.137934684753418],[49.72831453733984,10.138707160949707], [49.72810647918403,10.139458179473877],[49.72800244977173,10.140230655670166],[49.727995514469626,10.141174793243408],[49.72800244977173,10.141700506210327], [49.72800938507281,10.142258405685425],[49.728217443644766,10.14261245727539],[49.72852952983064,10.142955780029297],[49.728709845379036,10.143202543258667], [49.72883467882785,10.14414668083191],[49.728605817259776,10.144844055175781],[49.72890403060513,10.145412683486938],[49.730138475662,10.14711856842041], [49.731567063897494,10.14887809753418],[49.73249631716874,10.149736404418945],[49.73289852575426,10.14984369277954]]},”properties”:{}}]},”map”:”52f21f2d053b5b706a000004”,”id”:”52f21f2d053b5b706a000025”} ]</p>\n"},"post":{"url":"/orgs/:org/maps/:map/groups","params":[["org","string"],["map","string"]],"title":"Create a group within an map","content":"\n<h3 id=\"create_a_new_groups_for_a_given_map\">Create a new groups for a given map</h3>\n\n<ul>\n<li>\n<p>param <em>String</em> The organization name</p>\n</li>\n\n<li>\n<p>param <em>String</em> The map name</p>\n</li>\n\n<li>\n<p>return <em>Hash</em> The new group data</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X POST <a href=\"http://example.com:1884/orgs/belectric_its/maps/germany/groups\">http://example.com:1884/orgs/belectric_its/maps/germany/groups</a></p>\n\n<p>{“name”:”adensis”,”group”:{“type”:”FeatureCollection”,”features”:[{type:Feature,geometry:{type:Polygon, coordinates:[[51.09038837084152,13.70301693677902,51.09041717084152,13.70329293677902,51.09040127084152,13.70329743677902, 51.09040307084152,13.70331468677902,51.090371270841516,13.70332368677902,51.09034067084151,13.70303043677902,51.09038837084152,13.70301693677902]]}, “properties”:{“zoom_level”:20,”stream”:”http://80.148.29.35:2002/streams/AdensisSolTherm”}}]},”areas”:{“type”:”FeatureCollection”, “features”:[{type:Feature,geometry:{type:Polygon,coordinates:[[51.09038837084152,13.70301693677902],[51.09041717084152,13.70329293677902], [51.09040127084152,13.70329743677902],[51.09040307084152,13.70331468677902],[51.090371270841516,13.70332368677902],[51.09034067084151,13.70303043677902], [51.09038837084152,13.70301693677902]]},”properties”:{}}]},”map”:”52f21f2d053b5b706a000004”,”id”:”52f21f2d053b5b706a000024”}</p>\n"},"delete":{"url":"/orgs/:org/maps/:map/groups","params":[["org","string"],["map","string"]],"title":"Remove all groups for a map","content":"\n<h3 id=\"remove_all_groups_for_given_map\">Remove all groups for given map</h3>\n\n<ul>\n<li>\n<p>param <em>String</em> The organization name</p>\n</li>\n\n<li>\n<p>param <em>String</em> The map name</p>\n</li>\n\n<li>\n<p>return <em>Array</em> The deleted list of groups</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X DELETE <a href=\"http://example.com:1884/orgs/belectric_its/maps/germany/groups\">http://example.com:1884/orgs/belectric_its/maps/germany/groups</a></p>\n\n<p>[{name:adensis,group:{type:FeatureCollection,features:{type:Feature,geometry:{type:Polygon, coordinates:[[51.09038837084152,13.70301693677902,51.09041717084152,13.70329293677902,51.09040127084152,13.70329743677902, 51.09040307084152,13.70331468677902,51.090371270841516,13.70332368677902,51.09034067084151,13.70303043677902, 51.09038837084152,13.70301693677902]},”properties”:{“zoom_level”:20,”stream”:”http://80.148.29.35:2002/streams/AdensisSolTherm”}}]}, “areas”:{“type”:”FeatureCollection”,”features”:[{type:Feature,geometry:{type:Polygon,coordinates:[[51.09038837084152,13.70301693677902], [51.09041717084152,13.70329293677902],[51.09040127084152,13.70329743677902],[51.09040307084152,13.70331468677902],[51.090371270841516,13.70332368677902], [51.09034067084151,13.70303043677902],[51.09038837084152,13.70301693677902]]},”properties”:{}}]},”map”:”52f21f2d053b5b706a000004”, “id”:”52f21f2d053b5b706a000024”},{“name”:”kitzingen”,”group”:{“type”:”FeatureCollection”,”features”:[{type:Feature,geometry:{type:Polygon, coordinates:[[49.73289852575426,10.14984369277954,49.733605850009155,10.14937162399292,49.73357811199727,10.148921012878418, 49.73320364728537,10.147376060485838,49.73282917968419,10.145251750946045,49.73410513151195,10.144844055175781,49.73388322925593,10.142912864685059, 49.734535064245705,10.142741203308105,49.73441024545732,10.141818523406982,49.73438250790518,10.140960216522217,49.733702932925866,10.137591361999512, 49.73371680189811,10.13711929321289,49.733605850009155,10.136840343475342,49.73273209501968,10.136754512786865,49.73269048724684,10.135853290557861, 49.73226053817238,10.13613224029541,49.73151158552748,10.135982036590576,49.730526833906964,10.135681629180908,49.72979172460325,10.135810375213623, 49.72954206230715,10.135917663574219,49.72990962024117,10.136754512786865,49.72929239872686,10.138374567031859,49.72920224211841,10.138428211212158, 49.72863355811338,10.137934684753418,49.72831453733984,10.138707160949707,49.72810647918403,10.139458179473877,49.72800244977173,10.140230655670166, 49.727995514469626,10.141174793243408,49.72800244977173,10.141700506210327,49.72800938507281,10.142258405685425,49.728217443644766,10.14261245727539, 49.72852952983064,10.142955780029297,49.728709845379036,10.143202543258667,49.72883467882785,10.14414668083191,49.728605817259776,10.144844055175781, 49.72890403060513,10.145412683486938,49.730138475662,10.14711856842041,49.731567063897494,10.14887809753418,49.73249631716874,10.149736404418945, 49.73289852575426,10.14984369277954]]},”properties”:{“zoom_level”:15,”stream”:”http://80.148.29.35:2002/streams/AdensisJDL”}}]}, “areas”:{“type”:”FeatureCollection”,”features”:[{type:Feature,geometry:{type:Polygon,coordinates:[[49.73289852575426,10.14984369277954], [49.733605850009155,10.14937162399292],[49.73357811199727,10.148921012878418],[49.73320364728537,10.147376060485838],[49.73282917968419,10.145251750946045], [49.73410513151195,10.144844055175781],[49.73388322925593,10.142912864685059],[49.734535064245705,10.142741203308105],[49.73441024545732,10.141818523406982], [49.73438250790518,10.140960216522217],[49.733702932925866,10.137591361999512],[49.73371680189811,10.13711929321289],[49.733605850009155,10.136840343475342], [49.73273209501968,10.136754512786865],[49.73269048724684,10.135853290557861],[49.73226053817238,10.13613224029541],[49.73151158552748,10.135982036590576], [49.730526833906964,10.135681629180908],[49.72979172460325,10.135810375213623],[49.72954206230715,10.135917663574219],[49.72990962024117,10.136754512786865], [49.72929239872686,10.138374567031859],[49.72920224211841,10.138428211212158],[49.72863355811338,10.137934684753418],[49.72831453733984,10.138707160949707], [49.72810647918403,10.139458179473877],[49.72800244977173,10.140230655670166],[49.727995514469626,10.141174793243408],[49.72800244977173,10.141700506210327], [49.72800938507281,10.142258405685425],[49.728217443644766,10.14261245727539],[49.72852952983064,10.142955780029297],[49.728709845379036,10.143202543258667], [49.72883467882785,10.14414668083191],[49.728605817259776,10.144844055175781],[49.72890403060513,10.145412683486938],[49.730138475662,10.14711856842041], [49.731567063897494,10.14887809753418],[49.73249631716874,10.149736404418945],[49.73289852575426,10.14984369277954]]},”properties”:{}}]},”map”:”52f21f2d053b5b706a000004”,”id”:”52f21f2d053b5b706a000025”} ]</p>\n"},"options":{"url":"/orgs/:org/maps/:map/groups","params":[["org","string"],["map","string"]],"title":"The list of valid HTTP methods for this resource","content":"\n<h3 id=\"the_valid_methods_for_this_resouce\">The valid methods for this resouce</h3>\n\n<ul>\n<li>return <em>Array</em> The list of valid methods for this resource</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X OPTIONS <a href=\"http://localhost:1884/orgs/belectric_its/maps\">http://localhost:1884/orgs/belectric_its/maps</a></p>\n\n<p><code>[&quot;POST&quot;,&quot;GET&quot;,&quot;HEAD&quot;,&quot;OPTIONS&quot;,&quot;MONITOR&quot;]</code></p>\n"},"monitor":{"url":"/orgs/:org/maps/:map/groups","params":[["org","string"],["map","string"]],"title":"Stream ofevent that inform you about whats going on","content":"\n<h3 id=\"open_an_stream_of_events_to_know_whats_going_on_within_this_resource\">Open an stream of events to know whats going on within this resource</h3>\n\n<ul>\n<li>return A server send events stream</li>\n</ul>\n"},"head":{"url":"/orgs/:org/maps/:map/groups","params":[["org","string"],["map","string"]],"title":"Return just the headers, without any kind of body","content":"\n<h3 id=\"return_just_the_headers_of_this_resource\">Return just the headers of this resource</h3>\n\n<ul>\n<li>return <em>Array</em> The list of headers</li>\n</ul>\n"}}},"/orgs/:org/maps/:map/group/:group":{"dir":"group","title":"Operations to work with a group","config":{"get":{"url":"/orgs/:org/maps/:map/groups/:group","params":[["org","string"],["map","string"],["group","string"]],"title":"Get all the info stored about a group","content":"\n<h3 id=\"gets_all_data_about_a_given_group\">Get&#39;s all data about a given group</h3>\n\n<ul>\n<li>\n<p>param <em>String</em> The organization name</p>\n</li>\n\n<li>\n<p>param <em>String</em> A map name</p>\n</li>\n\n<li>\n<p>param <em>String</em> A group name</p>\n</li>\n\n<li>\n<p>return <em>Hash</em> The group info stored</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p><a href=\"http://example.com:1884/orgs/belectric_its/maps/germany/groups/adensis\">http://example.com:1884/orgs/belectric_its/maps/germany/groups/adensis</a></p>\n\n<p>[{name:adensis,group:{type:FeatureCollection,features:{type:Feature,geometry:{type:Polygon, coordinates:[[51.09038837084152,13.70301693677902,51.09041717084152,13.70329293677902,51.09040127084152,13.70329743677902, 51.09040307084152,13.70331468677902,51.090371270841516,13.70332368677902,51.09034067084151,13.70303043677902, 51.09038837084152,13.70301693677902]},”properties”:{“zoom_level”:20,”stream”:”http://80.148.29.35:2002/streams/AdensisSolTherm”}}]}, “areas”:{“type”:”FeatureCollection”,”features”:[{type:Feature,geometry:{type:Polygon,coordinates:[[51.09038837084152,13.70301693677902], [51.09041717084152,13.70329293677902],[51.09040127084152,13.70329743677902],[51.09040307084152,13.70331468677902],[51.090371270841516,13.70332368677902], [51.09034067084151,13.70303043677902],[51.09038837084152,13.70301693677902]]},”properties”:{}}]},”map”:”52f21f2d053b5b706a000004”,”id”:”52f21f2d053b5b706a000024”}]</p>\n"},"put":{"url":"/orgs/:org/maps/:map/groups/:group","params":[["org","string"],["map","string"],["group","string"]],"title":"To update a group","content":"\n<h3 id=\"to_update_a_group\">To update a group</h3>\n\n<ul>\n<li>\n<p>param <em>String</em> The organization name</p>\n</li>\n\n<li>\n<p>param <em>String</em> The map name</p>\n</li>\n\n<li>\n<p>param <em>String</em> The group name</p>\n</li>\n\n<li>\n<p>return <em>Hash</em> The new group data</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X PUT <a href=\"http://example.com:1884/orgs/belectric_its/maps/germany/groups/adensis\">http://example.com:1884/orgs/belectric_its/maps/germany/groups/adensis</a></p>\n\n<p>{“name”:”adensis”,”group”:{“type”:”FeatureCollection”,”features”:[{type:Feature,geometry:{type:Polygon, coordinates:[[51.09038837084152,13.70301693677902,51.09041717084152,13.70329293677902,51.09040127084152,13.70329743677902, 51.09040307084152,13.70331468677902,51.090371270841516,13.70332368677902,51.09034067084151,13.70303043677902,51.09038837084152,13.70301693677902]]}, “properties”:{“zoom_level”:20,”stream”:”http://80.148.29.35:2002/streams/AdensisSolTherm”}}]},”areas”:{“type”:”FeatureCollection”, “features”:[{type:Feature,geometry:{type:Polygon,coordinates:[[51.09038837084152,13.70301693677902],[51.09041717084152,13.70329293677902], [51.09040127084152,13.70329743677902],[51.09040307084152,13.70331468677902],[51.090371270841516,13.70332368677902],[51.09034067084151,13.70303043677902], [51.09038837084152,13.70301693677902]]},”properties”:{}}]},”map”:”52f21f2d053b5b706a000004”,”id”:”52f21f2d053b5b706a000024”}</p>\n"},"delete":{"url":"/orgs/:org/maps/:map/groups/:group","params":[["org","string"],["map","string"],["group","string"]],"title":"Remove a group","content":"\n<h3 id=\"delete_a_group\">Delete a group</h3>\n\n<ul>\n<li>\n<p>param <em>String</em> The organization name</p>\n</li>\n\n<li>\n<p>param <em>String</em> The map name</p>\n</li>\n\n<li>\n<p>param <em>String</em> The group name</p>\n</li>\n\n<li>\n<p>return <em>Hash</em> The deleted group</p>\n</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X DELETE <a href=\"http://example.com:1884/orgs/belectric_its/maps/germany/groups/adensis\">http://example.com:1884/orgs/belectric_its/maps/germany/groups/adensis</a></p>\n\n<p>[{name:adensis,group:{type:FeatureCollection,features:{type:Feature,geometry:{type:Polygon, coordinates:[[51.09038837084152,13.70301693677902,51.09041717084152,13.70329293677902,51.09040127084152,13.70329743677902, 51.09040307084152,13.70331468677902,51.090371270841516,13.70332368677902,51.09034067084151,13.70303043677902, 51.09038837084152,13.70301693677902]},”properties”:{“zoom_level”:20,”stream”:”http://80.148.29.35:2002/streams/AdensisSolTherm”}}]}, “areas”:{“type”:”FeatureCollection”,”features”:[{type:Feature,geometry:{type:Polygon,coordinates:[[51.09038837084152,13.70301693677902], [51.09041717084152,13.70329293677902],[51.09040127084152,13.70329743677902],[51.09040307084152,13.70331468677902],[51.090371270841516,13.70332368677902], [51.09034067084151,13.70303043677902],[51.09038837084152,13.70301693677902]]},”properties”:{}}]},”map”:”52f21f2d053b5b706a000004”,”id”:”52f21f2d053b5b706a000024”}]</p>\n"},"options":{"url":"/orgs/:org/maps/:map/groups/:group","params":[["org","string"],["map","string"],["group","string"]],"title":"The list of valid HTTP methods for this resource","content":"\n<h3 id=\"the_valid_methods_for_this_resouce\">The valid methods for this resouce</h3>\n\n<ul>\n<li>return <em>Array</em> The list of valid methods for this resource</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X OPTIONS <a href=\"http://localhost:1884/orgs/belectric_its/maps\">http://localhost:1884/orgs/belectric_its/maps</a></p>\n\n<p><code>[&quot;POST&quot;,&quot;GET&quot;,&quot;HEAD&quot;,&quot;OPTIONS&quot;,&quot;MONITOR&quot;]</code></p>\n"},"monitor":{"url":"/orgs/:org/maps/:map/groups/:group","params":[["org","string"],["map","string"],["group","string"]],"title":"Stream ofevent that inform you about whats going on","content":"\n<h3 id=\"open_an_stream_of_events_to_know_whats_going_on_within_this_resource\">Open an stream of events to know whats going on within this resource</h3>\n\n<ul>\n<li>return A server send events stream</li>\n</ul>\n"},"head":{"url":"/orgs/:org/maps/:map/groups/:group","params":[["org","string"],["map","string"],["group","string"]],"title":"Return just the headers, without any kind of body","content":"\n<h3 id=\"return_just_the_headers_of_this_resource\">Return just the headers of this resource</h3>\n\n<ul>\n<li>return <em>Array</em> The list of headers</li>\n</ul>\n"}}},"/orgs/:org/maps/:map/group/:group/areas":{"dir":"areas","title":"Operations to work with control areas","config":{"get":{"url":"/orgs/:org/maps/:map/groups/:group/areas","params":[["org","string"],["map","string"],["group","string"]],"title":"Get all control areas in the system"},"post":{"url":"/orgs/:org/maps/:map/groups/:group/areas","params":[["org","string"],["map","string"],["group","string"]],"title":"Create a new control area"},"delete":{"url":"/orgs/:org/maps/:map/groups/:group/areas","params":[["org","string"],["map","string"],["group","string"]],"title":"Remove all control areas"},"options":{"url":"/orgs/:org/maps/:map/groups/:group/areas","params":[["org","string"],["map","string"],["group","string"]],"title":"The list of valid HTTP methods for this resource","content":"\n<h3 id=\"the_valid_methods_for_this_resouce\">The valid methods for this resouce</h3>\n\n<ul>\n<li>return <em>Array</em> The list of valid methods for this resource</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X OPTIONS <a href=\"http://localhost:1884/orgs/belectric_its/maps\">http://localhost:1884/orgs/belectric_its/maps</a></p>\n\n<p><code>[&quot;POST&quot;,&quot;GET&quot;,&quot;HEAD&quot;,&quot;OPTIONS&quot;,&quot;MONITOR&quot;]</code></p>\n"},"monitor":{"url":"/orgs/:org/maps/:map/groups/:group/areas","params":[["org","string"],["map","string"],["group","string"]],"title":"Stream ofevent that inform you about whats going on","content":"\n<h3 id=\"open_an_stream_of_events_to_know_whats_going_on_within_this_resource\">Open an stream of events to know whats going on within this resource</h3>\n\n<ul>\n<li>return A server send events stream</li>\n</ul>\n"},"head":{"url":"/orgs/:org/maps/:map/groups/:group/areas","params":[["org","string"],["map","string"],["group","string"]],"title":"Return just the headers, without any kind of body","content":"\n<h3 id=\"return_just_the_headers_of_this_resource\">Return just the headers of this resource</h3>\n\n<ul>\n<li>return <em>Array</em> The list of headers</li>\n</ul>\n"}}},"/orgs/:org/maps/:map/group/:group/areas/:area":{"dir":"area","title":"Operations to work with a control area","config":{"put":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area","params":[["org","string"],["map","string"],["group","string"],["area","string"]],"title":"To update a control area"},"delete":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area","params":[["org","string"],["map","string"],["group","string"],["area","string"]],"title":"Remove a control area"},"options":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area","params":[["org","string"],["map","string"],["group","string"],["area","string"]],"title":"The list of valid HTTP methods for this resource","content":"\n<h3 id=\"the_valid_methods_for_this_resouce\">The valid methods for this resouce</h3>\n\n<ul>\n<li>return <em>Array</em> The list of valid methods for this resource</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X OPTIONS <a href=\"http://localhost:1884/orgs/belectric_its/maps\">http://localhost:1884/orgs/belectric_its/maps</a></p>\n\n<p><code>[&quot;POST&quot;,&quot;GET&quot;,&quot;HEAD&quot;,&quot;OPTIONS&quot;,&quot;MONITOR&quot;]</code></p>\n"},"monitor":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area","params":[["org","string"],["map","string"],["group","string"],["area","string"]],"title":"Stream ofevent that inform you about whats going on","content":"\n<h3 id=\"open_an_stream_of_events_to_know_whats_going_on_within_this_resource\">Open an stream of events to know whats going on within this resource</h3>\n\n<ul>\n<li>return A server send events stream</li>\n</ul>\n"},"head":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area","params":[["org","string"],["map","string"],["group","string"],["area","string"]],"title":"Return just the headers, without any kind of body","content":"\n<h3 id=\"return_just_the_headers_of_this_resource\">Return just the headers of this resource</h3>\n\n<ul>\n<li>return <em>Array</em> The list of headers</li>\n</ul>\n"}}},"/orgs/:org/maps/:map/group/:group/areas/:area/elements":{"dir":"elements","title":"Operations to work with elements in the map","config":{"get0":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area/elements/:olat/:olon/:elat/:elon","params":[["org","string"],["map","string"],["group","string"],["area","string"],["olat","double"],["olon","double"],["elat","double"],["elon","double"]],"title":"List all elements within the given boundaries"},"get1":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area/elements/:olat/:olon/:elat/:elon/active","params":[["org","string"],["map","string"],["group","string"],["area","string"],["olat","double"],["olon","double"],["elat","double"],["elon","double"]],"title":"List all elements within the given boundaries currently active"},"get2":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area/elements/:lat/:lon/near_by","params":[["org","string"],["map","string"],["group","string"],["area","string"],["lat","double"],["lon","double"]],"title":"List all elements near by a location"},"get3":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area/elements/:element/:version","params":[["org","string"],["map","string"],["group","string"],["area","string"],["element","string"],["version","string"]],"title":"Get data about an element and a version of it"},"post":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area/elements","params":[["org","string"],["map","string"],["group","string"],["area","string"]],"title":"Create a new elements"},"options":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area/elements","params":[["org","string"],["map","string"],["group","string"],["area","string"]],"title":"The list of valid HTTP methods for this resource","content":"\n<h3 id=\"the_valid_methods_for_this_resouce\">The valid methods for this resouce</h3>\n\n<ul>\n<li>return <em>Array</em> The list of valid methods for this resource</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X OPTIONS <a href=\"http://localhost:1884/orgs/belectric_its/maps\">http://localhost:1884/orgs/belectric_its/maps</a></p>\n\n<p><code>[&quot;POST&quot;,&quot;GET&quot;,&quot;HEAD&quot;,&quot;OPTIONS&quot;,&quot;MONITOR&quot;]</code></p>\n"},"monitor":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area/elements","params":[["org","string"],["map","string"],["group","string"],["area","string"]],"title":"Stream ofevent that inform you about whats going on","content":"\n<h3 id=\"open_an_stream_of_events_to_know_whats_going_on_within_this_resource\">Open an stream of events to know whats going on within this resource</h3>\n\n<ul>\n<li>return A server send events stream</li>\n</ul>\n"},"head":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area/elements","params":[["org","string"],["map","string"],["group","string"],["area","string"]],"title":"Return just the headers, without any kind of body","content":"\n<h3 id=\"return_just_the_headers_of_this_resource\">Return just the headers of this resource</h3>\n\n<ul>\n<li>return <em>Array</em> The list of headers</li>\n</ul>\n"}}},"/orgs/:org/maps/:map/group/:group/areas/:area/elements/:element":{"dir":"element","title":"Operations to work with an element","config":{"get":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area/elements/:element","params":[["org","string"],["map","string"],["group","string"],["area","string"],["element","string"]],"title":"Get data about an element"},"put":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area/elements/:element","params":[["org","string"],["map","string"],["group","string"],["area","string"],["element","string"]],"title":"To update an element"},"delete":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area/elements/:element","params":[["org","string"],["map","string"],["group","string"],["area","string"],["element","string"]],"title":"To remove an element"},"options":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area/elements/:element","params":[["org","string"],["map","string"],["group","string"],["area","string"],["element","string"]],"title":"The list of valid HTTP methods for this resource","content":"\n<h3 id=\"the_valid_methods_for_this_resouce\">The valid methods for this resouce</h3>\n\n<ul>\n<li>return <em>Array</em> The list of valid methods for this resource</li>\n</ul>\n\n<h3 id=\"example\">Example:</h3>\n\n<p>curl -X OPTIONS <a href=\"http://localhost:1884/orgs/belectric_its/maps\">http://localhost:1884/orgs/belectric_its/maps</a></p>\n\n<p><code>[&quot;POST&quot;,&quot;GET&quot;,&quot;HEAD&quot;,&quot;OPTIONS&quot;,&quot;MONITOR&quot;]</code></p>\n"},"monitor":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area/elements/:element","params":[["org","string"],["map","string"],["group","string"],["area","string"],["element","string"]],"title":"Stream ofevent that inform you about whats going on","content":"\n<h3 id=\"open_an_stream_of_events_to_know_whats_going_on_within_this_resource\">Open an stream of events to know whats going on within this resource</h3>\n\n<ul>\n<li>return A server send events stream</li>\n</ul>\n"},"head":{"url":"/orgs/:org/maps/:map/groups/:group/areas/:area/elements/:element","params":[["org","string"],["map","string"],["group","string"],["area","string"],["element","string"]],"title":"Return just the headers, without any kind of body","content":"\n<h3 id=\"return_just_the_headers_of_this_resource\">Return just the headers of this resource</h3>\n\n<ul>\n<li>return <em>Array</em> The list of headers</li>\n</ul>\n"}}}},"base_url":"http://80.148.29.35:2007","api_version":"1.2"}
@@ -1,7 +1,7 @@
1
1
  class ResourceForm
2
2
 
3
3
  constructor: (method, config) ->
4
- @method = method
4
+ @method = method.replace(/[0-9]/g, '')
5
5
  @config = config
6
6
  return
7
7
 
@@ -65,12 +65,17 @@ body{
65
65
  }
66
66
 
67
67
  .resource .name {
68
+ width:60%;
68
69
  display: table-cell;
69
- width: 25%;
70
+ word-break: break-all;
71
+ word-break: break-word;
70
72
  }
73
+
71
74
  .resource .title {
75
+ width: 30%;
72
76
  display: table-cell;
73
- width: 40%;
77
+ text-align: left;
78
+ padding-left: 10px;
74
79
  }
75
80
  .resource .name a {
76
81
  color: #999999;
@@ -82,7 +87,8 @@ body{
82
87
  color: black;
83
88
  }
84
89
  .resource .menu {
85
- float: right;
90
+ width: 10%;
91
+ display: table-cell;
86
92
  color: #666666;
87
93
  font-size: 0.9em;
88
94
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pere Urbon-Bayes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-28 00:00:00.000000000 Z
11
+ date: 2014-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -143,6 +143,7 @@ files:
143
143
  - views/js/amy.coffee
144
144
  - views/js/amy.js
145
145
  - views/js/amy.min.js
146
+ - views/js/data.json
146
147
  - views/js/form.coffee
147
148
  - views/js/resource.coffee
148
149
  - views/js/utils.coffee