Skip to content

Commit

Permalink
Merge pull request #9 from piomin/renovate/spring-boot
Browse files Browse the repository at this point in the history
Update dependency org.springframework.boot:spring-boot-starter-parent to v2.7.11
  • Loading branch information
piomin authored Apr 23, 2023
2 parents 12f4f8c + 4b0fe96 commit 0fc3fe6
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 39 deletions.
4 changes: 4 additions & 0 deletions account/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
</parent>
<artifactId>account</artifactId>

<properties>
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
Expand Down
4 changes: 4 additions & 0 deletions camel-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
</parent>
<artifactId>camel-common</artifactId>

<properties>
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
</properties>

<!-- <dependencies>-->
<!-- <dependency>-->
<!-- <groupId>org.projectlombok</groupId>-->
Expand Down
4 changes: 4 additions & 0 deletions customer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
</parent>
<artifactId>customer</artifactId>

<properties>
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
Expand Down
4 changes: 4 additions & 0 deletions gateway/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
</parent>
<artifactId>gateway</artifactId>

<properties>
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,43 +37,43 @@ public void configure() throws Exception {
JacksonDataFormat formatCusList = new JacksonDataFormat(Customer.class);
formatAccList.useList();

rest("/account")
.get("/{id}").description("Find account by id").outType(Account.class)
.param().name("id").type(RestParamType.path).description("Account identificator").dataType("int").endParam()
.route().serviceCall("account").unmarshal(formatAcc)
.endRest()
.get("/customer/{customerId}").description("Find account by customer id").outType(Account.class)
.param().name("customerId").type(RestParamType.path).description("Customer identificator").dataType("int").endParam()
.route().serviceCall("account").unmarshal(formatAcc)
.endRest()
.get("/").description("Find all accounts").outType(List.class)
.route().serviceCall("account").unmarshal(formatAccList)
.endRest()
.post("/").description("Add new account").outType(List.class)
.param().name("account").type(RestParamType.body).description("Account JSON object").dataType("Account").endParam()
.route().serviceCall("account").unmarshal(formatAcc)
.endRest();
// rest("/account")
// .get("/{id}").description("Find account by id").outType(Account.class)
// .param().name("id").type(RestParamType.path).description("Account identificator").dataType("int").endParam()
// .route().serviceCall("account").unmarshal(formatAcc)
// .endRest()
// .get("/customer/{customerId}").description("Find account by customer id").outType(Account.class)
// .param().name("customerId").type(RestParamType.path).description("Customer identificator").dataType("int").endParam()
// .route().serviceCall("account").unmarshal(formatAcc)
// .endRest()
// .get("/").description("Find all accounts").outType(List.class)
// .route().serviceCall("account").unmarshal(formatAccList)
// .endRest()
// .post("/").description("Add new account").outType(List.class)
// .param().name("account").type(RestParamType.body).description("Account JSON object").dataType("Account").endParam()
// .route().serviceCall("account").unmarshal(formatAcc)
// .endRest();
//
// rest("/customer")
// .get("/{id}").description("Find customer by id").outType(Customer.class)
// .param().name("id").type(RestParamType.path).description("Customer identificator").dataType("int").endParam()
// .route().serviceCall("customer").unmarshal(formatCus)
// .endRest()
// .get("/").description("Find all customers").outType(List.class)
// .route().serviceCall("customer").unmarshal(formatCusList)
// .endRest()
// .post("/").description("Add new customer").outType(List.class)
// .param().name("customer").type(RestParamType.body).description("Customer JSON object").dataType("Account").endParam()
// .route().serviceCall("customer").unmarshal(formatCus)
// .endRest();

rest("/customer")
.get("/{id}").description("Find customer by id").outType(Customer.class)
.param().name("id").type(RestParamType.path).description("Customer identificator").dataType("int").endParam()
.route().serviceCall("customer").unmarshal(formatCus)
.endRest()
.get("/").description("Find all customers").outType(List.class)
.route().serviceCall("customer").unmarshal(formatCusList)
.endRest()
.post("/").description("Add new customer").outType(List.class)
.param().name("customer").type(RestParamType.body).description("Customer JSON object").dataType("Account").endParam()
.route().serviceCall("customer").unmarshal(formatCus)
.endRest();

// from("rest:get:account:/{id}").serviceCall("account");
// from("rest:get:account:/customer/{customerId}").serviceCall("account");
// from("rest:get:account:/").serviceCall("account");
// from("rest:post:account:/").serviceCall("account");
// from("rest:get:customer:/{id}").serviceCall("customer");
// from("rest:get:customer:/").serviceCall("customer");
// from("rest:post:customer:/").serviceCall("customer");
from("rest:get:account:/{id}").serviceCall("account");
from("rest:get:account:/customer/{customerId}").serviceCall("account");
from("rest:get:account:/").serviceCall("account");
from("rest:post:account:/").serviceCall("account");
from("rest:get:customer:/{id}").serviceCall("customer");
from("rest:get:customer:/").serviceCall("customer");
from("rest:post:customer:/").serviceCall("customer");
}

}
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.5.RELEASE</version>
<version>2.7.11</version>
</parent>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>11</java.version>
<camel.version>3.6.0</camel.version>
<java.version>17</java.version>
<camel.version>3.20.3</camel.version>
<sonar.projectKey>piomin_sample-camel-spring-boot</sonar.projectKey>
<sonar.organization>piomin</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
Expand Down

0 comments on commit 0fc3fe6

Please sign in to comment.