Skip to content

Commit 4fa8df6

Browse files
committed
update to Bimserver 1.2.RC7 JSON API
1 parent f00123a commit 4fa8df6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Client/index_served.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
var viewer;
4545
var token = null;
4646
$.ajaxSetup({
47-
url: 'http://localhost:8082/jsonapi',
47+
url: 'http://localhost:8082/json',
4848
type: 'POST',
4949
contentType: 'text/plain' // suppress preflight
5050
});
@@ -97,7 +97,7 @@
9797
return;
9898
}
9999
$.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}}}),
101101
success: function(res,s,req){
102102
$('#selection').html(id + ' - ' + res.response.result.name + ' - ' + res.response.result.type);
103103
}
@@ -110,7 +110,7 @@
110110
$('#revision').submit(function(){
111111
var roid = $(this.roids).val();
112112
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'}}}),
114114
success: function(res1,s1,req1){
115115
if('result' in res1.response) $.ajax({
116116
data: JSON.stringify({token:token,request:{interface:'ServiceInterface',method:'download',parameters:{serializerOid:res1.response.result.oid,sync:true, showOwn:true,roid:roid}}}),
@@ -131,7 +131,7 @@
131131
var username = $(this.username).val();
132132
var password = $(this.password).val();
133133
$.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}}}),
135135
success: function(response,status,request){
136136
if('exception' in response.response) $('#errors').text('Error: '+response.response.exception.message);
137137
else {
@@ -147,7 +147,7 @@
147147
});
148148
$('#authenticated').submit(function(){
149149
$.ajax({
150-
data: JSON.stringify({token:token,request:{interface:'ServiceInterface',method:'logout'}}),
150+
data: JSON.stringify({token:token,request:{interface:'AuthInterface',method:'logout'}}),
151151
success: function(response,status,request){
152152
if('exception' in response.response) $('#errors').text('Error: '+response.response.exception.message);
153153
else{

0 commit comments

Comments
 (0)