Skip to content

Commit

Permalink
fix(tmf model): adjust serialised naming of SLA properties to align w…
Browse files Browse the repository at this point in the history
…ith expected model

relatedParties and Rules properties are expected to be singular from a naming perspecutive on the
model, so added JSONProperty to adjust whilst retaining the plural for semantics internally for the
LCM
  • Loading branch information
James Taylor committed Jun 9, 2021
1 parent 083f171 commit e2f69a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -17,7 +18,10 @@ public class ServiceLevelAgreement {
private String state;
private boolean approved;
private LocalDateTime approvalDate;
@JsonProperty("rule")
private List<Rule> rules;

@JsonProperty("relatedParty")
private List<RelatedPartyRef> relatedPartyRefs;

public ServiceLevelAgreement() {
Expand Down

0 comments on commit e2f69a4

Please sign in to comment.