|
44 | 44 | var viewer; |
45 | 45 | var token = null; |
46 | 46 | $.ajaxSetup({ |
47 | | - url: 'http://localhost:8082/jsonapi', |
| 47 | + url: 'http://localhost:8082/json', |
48 | 48 | type: 'POST', |
49 | 49 | contentType: 'text/plain' // suppress preflight |
50 | 50 | }); |
|
97 | 97 | return; |
98 | 98 | } |
99 | 99 | $.ajax({ |
100 | | - data: JSON.stringify({token:token,request:{interface:'ServiceInterface',method:'getDataObjectByGuid',parameters:{roid:$('#roids').val(),guid:id}}}), |
| 100 | + data: JSON.stringify({token:token,request:{interface:'LowLevelInterface',method:'getDataObjectByGuid',parameters:{roid:$('#roids').val(),guid:id}}}), |
101 | 101 | success: function(res,s,req){ |
102 | 102 | $('#selection').html(id + ' - ' + res.response.result.name + ' - ' + res.response.result.type); |
103 | 103 | } |
|
110 | 110 | $('#revision').submit(function(){ |
111 | 111 | var roid = $(this.roids).val(); |
112 | 112 | if(roid!='null') $.ajax({ |
113 | | - data: JSON.stringify({token:token,request:{interface:'ServiceInterface',method:'getSerializerByName',parameters:{serializerName:'ThreeJs'}}}), |
| 113 | + data: JSON.stringify({token:token,request:{interface:'PluginInterface',method:'getSerializerByName',parameters:{serializerName:'ThreeJs'}}}), |
114 | 114 | success: function(res1,s1,req1){ |
115 | 115 | if('result' in res1.response) $.ajax({ |
116 | 116 | data: JSON.stringify({token:token,request:{interface:'ServiceInterface',method:'download',parameters:{serializerOid:res1.response.result.oid,sync:true, showOwn:true,roid:roid}}}), |
|
131 | 131 | var username = $(this.username).val(); |
132 | 132 | var password = $(this.password).val(); |
133 | 133 | $.ajax({ |
134 | | - data: JSON.stringify({request:{interface:'ServiceInterface',method:'login',parameters:{username:username,password:password}}}), |
| 134 | + data: JSON.stringify({request:{interface:'AuthInterface',method:'login',parameters:{username:username,password:password}}}), |
135 | 135 | success: function(response,status,request){ |
136 | 136 | if('exception' in response.response) $('#errors').text('Error: '+response.response.exception.message); |
137 | 137 | else { |
|
147 | 147 | }); |
148 | 148 | $('#authenticated').submit(function(){ |
149 | 149 | $.ajax({ |
150 | | - data: JSON.stringify({token:token,request:{interface:'ServiceInterface',method:'logout'}}), |
| 150 | + data: JSON.stringify({token:token,request:{interface:'AuthInterface',method:'logout'}}), |
151 | 151 | success: function(response,status,request){ |
152 | 152 | if('exception' in response.response) $('#errors').text('Error: '+response.response.exception.message); |
153 | 153 | else{ |
|
0 commit comments