integration + fixes
This commit is contained in:
@@ -23,10 +23,15 @@ final public class ExecutorMediaType {
|
||||
String serializedList = "[ \n";
|
||||
|
||||
for (ExecutorClass executor: listOfExecutors) {
|
||||
serializedList += serialize(executor) + ",\n";
|
||||
serializedList += serialize(executor) + "\n";
|
||||
}
|
||||
|
||||
return serializedList + "\n ]";
|
||||
// return serializedList + "\n ]";
|
||||
JSONArray jsonArray = new JSONArray();
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("executorIp", "localhost");
|
||||
jsonArray.put(jsonObject);
|
||||
return jsonArray.toString();
|
||||
}
|
||||
|
||||
private ExecutorMediaType() { }
|
||||
|
@@ -2,7 +2,6 @@ package ch.unisg.executorpool.adapter.in.web;
|
||||
|
||||
import ch.unisg.executorpool.application.port.in.GetAllExecutorsInExecutorPoolUseCase;
|
||||
import ch.unisg.executorpool.domain.ExecutorClass;
|
||||
import ch.unisg.tapastasks.tasks.adapter.in.web.TaskMediaType;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
|
@@ -1 +1 @@
|
||||
server.port=8081
|
||||
server.port=8083
|
||||
|
Reference in New Issue
Block a user