Adrian Cole
10 years ago
10 changed files with 241 additions and 109 deletions
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
GitHub Example |
||||
=================== |
||||
|
||||
This is an example of a simple json client. |
||||
|
||||
=== Building example with Gradle |
||||
Install and run `gradle` to produce `build/wikipedia` |
||||
|
||||
=== Building example with Maven |
||||
Install and run `mvn` to produce `target/wikipedia` |
@ -0,0 +1,73 @@
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
||||
<modelVersion>4.0.0</modelVersion> |
||||
|
||||
<parent> |
||||
<groupId>org.sonatype.oss</groupId> |
||||
<artifactId>oss-parent</artifactId> |
||||
<version>7</version> |
||||
</parent> |
||||
|
||||
<groupId>com.netflix.feign</groupId> |
||||
<artifactId>feign-example-github</artifactId> |
||||
<packaging>jar</packaging> |
||||
<version>7.1.0</version> |
||||
<name>GitHub Example</name> |
||||
|
||||
<dependencies> |
||||
<dependency> |
||||
<groupId>com.netflix.feign</groupId> |
||||
<artifactId>feign-core</artifactId> |
||||
<version>${project.version}</version> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>com.netflix.feign</groupId> |
||||
<artifactId>feign-gson</artifactId> |
||||
<version>${project.version}</version> |
||||
</dependency> |
||||
</dependencies> |
||||
|
||||
<build> |
||||
<defaultGoal>package</defaultGoal> |
||||
<plugins> |
||||
<plugin> |
||||
<groupId>org.apache.maven.plugins</groupId> |
||||
<artifactId>maven-shade-plugin</artifactId> |
||||
<version>2.3</version> |
||||
<executions> |
||||
<execution> |
||||
<phase>package</phase> |
||||
<goals> |
||||
<goal>shade</goal> |
||||
</goals> |
||||
<configuration> |
||||
<transformers> |
||||
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
||||
<mainClass>feign.example.github.GitHubExample</mainClass> |
||||
</transformer> |
||||
</transformers> |
||||
<createDependencyReducedPom>false</createDependencyReducedPom> |
||||
</configuration> |
||||
</execution> |
||||
</executions> |
||||
</plugin> |
||||
<plugin> |
||||
<groupId>org.skife.maven</groupId> |
||||
<artifactId>really-executable-jar-maven-plugin</artifactId> |
||||
<version>1.3.0</version> |
||||
<configuration> |
||||
<programFile>github</programFile> |
||||
</configuration> |
||||
<executions> |
||||
<execution> |
||||
<phase>package</phase> |
||||
<goals> |
||||
<goal>really-executable-jar</goal> |
||||
</goals> |
||||
</execution> |
||||
</executions> |
||||
</plugin> |
||||
</plugins> |
||||
</build> |
||||
</project> |
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
Wikipedia Example |
||||
=================== |
||||
|
||||
This is an example of advanced json response parsing, including pagination. |
||||
|
||||
=== Building example with Gradle |
||||
Install and run `gradle` to produce `build/wikipedia` |
||||
|
||||
=== Building example with Maven |
||||
Install and run `mvn` to produce `target/wikipedia` |
@ -0,0 +1,78 @@
@@ -0,0 +1,78 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
||||
<modelVersion>4.0.0</modelVersion> |
||||
|
||||
<parent> |
||||
<groupId>org.sonatype.oss</groupId> |
||||
<artifactId>oss-parent</artifactId> |
||||
<version>7</version> |
||||
</parent> |
||||
|
||||
<groupId>com.netflix.feign</groupId> |
||||
<artifactId>feign-example-wikipedia</artifactId> |
||||
<packaging>jar</packaging> |
||||
<version>7.1.0</version> |
||||
<name>Wikipedia Example</name> |
||||
|
||||
<dependencies> |
||||
<dependency> |
||||
<groupId>com.netflix.feign</groupId> |
||||
<artifactId>feign-core</artifactId> |
||||
<version>${project.version}</version> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>com.netflix.feign</groupId> |
||||
<artifactId>feign-gson</artifactId> |
||||
<version>${project.version}</version> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>com.google.code.gson</groupId> |
||||
<artifactId>gson</artifactId> |
||||
<version>2.2.4</version> |
||||
</dependency> |
||||
</dependencies> |
||||
|
||||
<build> |
||||
<defaultGoal>package</defaultGoal> |
||||
<plugins> |
||||
<plugin> |
||||
<groupId>org.apache.maven.plugins</groupId> |
||||
<artifactId>maven-shade-plugin</artifactId> |
||||
<version>2.3</version> |
||||
<executions> |
||||
<execution> |
||||
<phase>package</phase> |
||||
<goals> |
||||
<goal>shade</goal> |
||||
</goals> |
||||
<configuration> |
||||
<transformers> |
||||
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
||||
<mainClass>feign.example.wikipedia.WikipediaExample</mainClass> |
||||
</transformer> |
||||
</transformers> |
||||
<createDependencyReducedPom>false</createDependencyReducedPom> |
||||
</configuration> |
||||
</execution> |
||||
</executions> |
||||
</plugin> |
||||
<plugin> |
||||
<groupId>org.skife.maven</groupId> |
||||
<artifactId>really-executable-jar-maven-plugin</artifactId> |
||||
<version>1.3.0</version> |
||||
<configuration> |
||||
<programFile>wikipedia</programFile> |
||||
</configuration> |
||||
<executions> |
||||
<execution> |
||||
<phase>package</phase> |
||||
<goals> |
||||
<goal>really-executable-jar</goal> |
||||
</goals> |
||||
</execution> |
||||
</executions> |
||||
</plugin> |
||||
</plugins> |
||||
</build> |
||||
</project> |
Loading…
Reference in new issue