3838
3939public class SSRestClient {
4040
41- public static final String host = "http://localhost:8080 /" ;
42- public static final String restPath = "sss.adapter.rest.v3/ rest/" ;
41+ public static final String host = "http://localhost:9000 /" ;
42+ public static final String restPath = "rest/" ;
4343
4444// public static final String host = "http://test-ll.know-center.tugraz.at/";
4545// public static final String restPath = "bp.preparation/rest/";
@@ -74,7 +74,7 @@ public static void main(String[] args) throws Exception {
7474
7575 caller .auth ();
7676
77- caller .getLearnEpCircleEntityStructure ("918879364224283841" );
77+ // caller.getLearnEpCircleEntityStructure("918879364224283841");
7878// caller.getLivingDoc(URLEncoder.encode("65548/", SSEncodingU.utf8.toString())); //URLEncoder.encode("https://test.learnenv.com/document/65548/", SSEncodingU.utf8.toString()));
7979
8080// caller.updateRecomm(
@@ -91,7 +91,7 @@ public static void main(String[] args) throws Exception {
9191
9292// caller.getEntitiesFilteredAccessible();
9393// caller.discCreate();
94- // caller.discsGetFiltered();
94+ caller .discsGetFiltered ();
9595
9696 }catch (Exception error ) {
9797 System .err .println (error );
@@ -299,12 +299,12 @@ public void appsGet(){
299299 public void discsGetFiltered (){
300300
301301 try {
302- final WebTarget target = client .target (host + restPath + "discs/filtered/http%253A%252F%252Fsss.eu%252F77962444117334693 " );
302+ final WebTarget target = client .target (host + restPath + "discs/filtered" );
303303 final Invocation .Builder builder = target .request (MediaType .APPLICATION_JSON_TYPE );
304304
305305 builder .header (HttpHeaders .AUTHORIZATION , "Bearer " + key );
306306
307- final String json = "{\" setLikes\" :true,\" setEntries\" :false}" ;
307+ final String json = "{\" setComments \" :true, \" setLikes\" :true,\" setEntries\" :false}" ;
308308 final Entity <String > formattedInput = Entity .entity (json /*SSJSONU.jsonStr(par)*/ , MediaType .APPLICATION_JSON_TYPE );
309309 final String response = builder .post (formattedInput , String .class );
310310
0 commit comments