Skip to content
Snippets Groups Projects
Commit 8358ac43 authored by ThanKarab's avatar ThanKarab
Browse files

Run Workflow merged.

parent 9dab6d32
No related branches found
No related tags found
1 merge request!8Dev merge middleware
......@@ -82,7 +82,7 @@ services:
algorithmsUrl: {{ default .Env.EXAREME_URL "http://localhost:9090" }}/mining/algorithms.json
galaxy:
galaxyUrl: {{ default .Env.GALAXY_URL "http://localhost:8090/nativeGalaxy" }}
galaxyUrl: {{ default .Env.GALAXY_URL "http://localhost:8090/" }}
galaxyContext: {{ default .Env.GALAXY_CONTEXT "nativeGalaxy/workflows/list" }}
galaxyApiKey: {{ .Env.GALAXY_API_KEY }}
galaxyUsername: {{ default .Env.GALAXY_USERNAME "admin" }}
......
This diff is collapsed.
......@@ -3,17 +3,26 @@ package eu.hbp.mip.controllers.retrofit;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import javax.annotation.PostConstruct;
@Component
public class RetrofitClientInstance {
private static Retrofit retrofit;
@Value("#{'${services.galaxy.galaxyUrl}'}")
private static String galaxyUrl;
private String galaxyUrl;
private static String BASE_URL;
private static final String BASE_URL = galaxyUrl + "/api/";
@PostConstruct
public void init() {
BASE_URL = galaxyUrl + "/api/";
}
public static Retrofit getRetrofitInstance() {
if (retrofit == null) {
......
......@@ -13,11 +13,10 @@ public class UserActionLogging {
public static void LogAction(String actionName, String actionIdInfo)
{
LOGGER.info( LocalTime.now()+" User : "
LOGGER.info( " User : "
+ SecurityContextHolder.getContext().getAuthentication().getName()
+ " called enpoint " + actionName
+ " info "
+ actionIdInfo);
+ " called endpoint: " + actionName
+ " info: " + actionIdInfo);
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment