Commit f7685b7a authored by Matija Obreza's avatar Matija Obreza

Added csharp project

parent 61d2bee0
......@@ -10,6 +10,7 @@ We provide different flavors of the library (with different dependencies):
- **[glis-client-jersey2](jersey2)**
- **[glis-client-resttemplate](resttemplate)** using Spring REST Template
- [glis-client-resteasy](resteasy) (needs testing)
- [glis-client-csharp](csharp) (needs .Net contributors)
## Maven users
......
# GLIS API Client
This is the .Net client library for the Global Information System.
To generate the C# code, proceed as follows:
```
cd csharp
mvn generate-sources
```
The VS project code will be generated in `target/generate-sources/swagger/src` folder.
<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/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.genesys-pgr</groupId>
<artifactId>glis-client-project</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../..</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>glis-client-csharp</artifactId>
<packaging>pom</packaging>
<name>GLIS API client (csharp)</name>
<description>API client for the Global Information System for plant genetic resources for food and agriculture (PGRFA) for .Net</description>
<properties>
<swagger-codegen.language>csharp</swagger-codegen.language>
<swagger-codegen.library></swagger-codegen.library>
<jersey-version>2.22.2</jersey-version>
<jackson-version>2.7.5</jackson-version>
</properties>
<dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>${swagger-codegen.version}</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/../swagger/v1/glis.yml</inputSpec>
<language>${swagger-codegen.language}</language>
<library>${swagger-codegen.library}</library>
<modelPackage>Model</modelPackage>
<apiPackage>API</apiPackage>
<invokerPackage>Invoker</invokerPackage>
<output>${generated-sources-path}</output>
<configOptions>
<packageName>Genesys.GLIS.V1</packageName>
<packageVersion>${project.version}</packageVersion>
</configOptions>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment