Skip to content

Commit b57c3c3

Browse files
committed
SSS-459
1 parent dbfea83 commit b57c3c3

File tree

2 files changed

+7
-7
lines changed
  • adapter/adapter.rest/adapter.rest.v3/src/main/java/at/tugraz/sss/adapter/rest/v3
  • servs/comment/comment.impl/src/main/java/at/kc/tugraz/sss/comment/impl/fct/sql

2 files changed

+7
-7
lines changed

adapter/adapter.rest/adapter.rest.v3/src/main/java/at/tugraz/sss/adapter/rest/v3/SSRestClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838

3939
public 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

servs/comment/comment.impl/src/main/java/at/kc/tugraz/sss/comment/impl/fct/sql/SSCommentSQLFct.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public List<SSComment> getComments(
9797
final List<String> tableCons = new ArrayList<>();
9898
final Map<String, String> wheres = new HashMap<>();
9999

100-
column(columns, SSSQLVarNames.commentId);
100+
column(columns, SSCommentSQLTableE.comment, SSSQLVarNames.commentId);
101101
column(columns, SSSQLVarNames.commentContent);
102102

103103
table(tables, SSCommentSQLTableE.comment);

0 commit comments

Comments
 (0)