Project

General

Profile

Download (1.21 KB) Statistics
| Branch: | Revision:
1
UTIS Client
2
=================
3

    
4
A project to automatically create a client api to utis
5

    
6

    
7
swagger-codegen is used as a generator. the following links provide useful documentation:
8

    
9
* https://github.com/swagger-api/swagger-codegen/#to-generate-a-sample-client-library 
10
* https://bitbucket.org/atlassian/bash-maven-plugin
11

    
12
the [swagger-codegen-maven-plugin](https://github.com/garethjevans/swagger-codegen-maven-plugin) is not a good option since it does not allow to supply a json configuration file
13

    
14
Generating the client api
15
---------------------------
16

    
17
execute ``./generate-client-code.sh`` in the project root 
18

    
19
Using the client api
20
---------------------------
21

    
22
In order to add the client-api to maven project add the the cybertaxonomy.org maven repository to the pom.xml:
23

    
24
    <repositories>
25
       <repository>
26
         <id>Cybertaxonomy.org repository</id>
27
         <url>http://dev.e-taxonomy.eu/mavenrepo/</url>
28
       </repository>
29
    </repositories>
30
    
31
and configure the client-api artifact as dependency
32

    
33
      <dependencies>
34
        <dependency>
35
            <groupId>org.cybertaxonomy</groupId>
36
            <artifactId>utis-client</artifactId>
37
            <version>1.0</version>
38
        </dependency>
39
      </dependencies>
40
    
(3-3/5)