diff --git a/README.md b/README.md index 55c4bb5..0ee3e19 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ You can access swagger-ui by running the API and navigating to `http://localhost An open-api schema is also available under `docs/swagger-ui` from the root of the project. -### Running corda node locally +### Running corda nodes locally To package and run nodes locally run `./gradlew clean deployNodes` from the root directory then navigate to `corda-driver/build/nodes` and run `./runnodes` on Mac/Linux or `runnodes.bat` on @@ -29,6 +29,11 @@ Windows. This broadly follows the steps outlined [here](https://docs.corda.net/d Nodes are configured (for example what nodes to deploy, cordApps included and config properties) at `corda-driver/build.gradle` under the deployNodes task +### Running the Lifecycle Manager API +Once the nodes are up and running, you need to spin up a local postgres instance by +running `docker-compose up` in `/app/src/`. Once this has started you can run the `ManagerApplication`. +It should be run with the dev profile active (`-Dspring.profiles.active=dev`) + ### Updating OpenAPI swagger-ui file This should be completed as a github action but to do manually run diff --git a/tm-forum/src/main/java/eu/_5gzorro/tm_forum/models/sla/ServiceLevelAgreement.java b/tm-forum/src/main/java/eu/_5gzorro/tm_forum/models/sla/ServiceLevelAgreement.java index bb30553..7788375 100644 --- a/tm-forum/src/main/java/eu/_5gzorro/tm_forum/models/sla/ServiceLevelAgreement.java +++ b/tm-forum/src/main/java/eu/_5gzorro/tm_forum/models/sla/ServiceLevelAgreement.java @@ -1,5 +1,6 @@ package eu._5gzorro.tm_forum.models.sla; +import com.fasterxml.jackson.annotation.JsonProperty; import eu._5gzorro.tm_forum.models.TimePeriod; import java.time.LocalDateTime; @@ -17,7 +18,10 @@ public class ServiceLevelAgreement { private String state; private boolean approved; private LocalDateTime approvalDate; + @JsonProperty("rule") private List rules; + + @JsonProperty("relatedParty") private List relatedPartyRefs; public ServiceLevelAgreement() {