Skip to content
This repository was archived by the owner on Aug 13, 2018. It is now read-only.

Commit 5d5fb21

Browse files
committed
first Client API draft
1 parent 5c0b884 commit 5d5fb21

3 files changed

Lines changed: 52 additions & 0 deletions

File tree

modules/client/connect/rest/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,17 @@
1111

1212
<artifactId>binarycache-modules-client-connect-rest</artifactId>
1313

14+
<dependencies>
15+
16+
<dependency>
17+
<groupId>org.jboss.resteasy</groupId>
18+
<artifactId>resteasy-jaxrs</artifactId>
19+
</dependency>
20+
21+
<dependency>
22+
<groupId>org.rapidpm.microservice</groupId>
23+
<artifactId>binarycache-modules-client-api</artifactId>
24+
</dependency>
25+
</dependencies>
1426

1527
</project>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package org.rapidpm.binarycache.client.connect.rest;
2+
3+
/**
4+
* Copyright (C) 2017 RapidPM - Sven Ruppert
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*
15+
* Created by Sven Ruppert - RapidPM - Team on 07.03.17.
16+
*/
17+
public class BinaryCacheRestClient {
18+
19+
@Inject BinaryCacheClient binaryCacheClient;
20+
21+
22+
23+
//create REST methods , delegate to binaryCacheClient
24+
25+
26+
27+
28+
}

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,18 @@
9595
<artifactId>binarycache-modules-optionals-microservice</artifactId>
9696
<version>${project.version}</version>
9797
</dependency>
98+
<dependency>
99+
<groupId>org.rapidpm.microservice</groupId>
100+
<artifactId>binarycache-modules-client</artifactId>
101+
<version>${project.version}</version>
102+
</dependency>
103+
<dependency>
104+
<groupId>org.rapidpm.microservice</groupId>
105+
<artifactId>binarycache-modules-client-api</artifactId>
106+
<version>${project.version}</version>
107+
</dependency>
108+
109+
98110
</dependencies>
99111
</dependencyManagement>
100112

0 commit comments

Comments
 (0)