Files
maptology/api/pom.xml
T
handte 2174195fa7
lbs-gitea/maptology/master There was a failure building this commit
Add input validation, add addUser, change swagger security.
Enable jax-rs bean validation on all inputs.
Add jax-rs validation fraction to wildfly.
Add missing addUser admin method to user service.
Add testcases for addUser.
Add missing and fix incorrect security annotations on all service
interfaces.
Split swagger security definition into two definitions (admin, user) to
model required access privileges in swagger file.
Move authorization definitions from class to method level to properly
define the minimum access rights.
Set locoslab api version to final instead of snapshot dependency to
avoid repeated downloads of never-changing libraries.
2017-12-06 21:18:09 +01:00

125 lines
3.7 KiB
XML

<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.maptology</groupId>
<artifactId>all</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>api</artifactId>
<name>Maptology Api</name>
<description>Api of the maptology service.</description>
<build>
<plugins>
<plugin>
<!-- generate swagger description from api -->
<groupId>com.github.kongchen</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<apiSources>
<apiSource>
<springmvc>false</springmvc>
<locations>
<location>com.maptology.api.user.IUserService</location>
<location>com.maptology.api.notice.INoticeService</location>
<location>com.maptology.api.log.ILogService</location>
<location>com.maptology.api.version.IVersionService</location>
</locations>
<schemes>
<scheme>http</scheme>
<scheme>https</scheme>
</schemes>
<basePath>/api</basePath>
<info>
<title>Maptology Service</title>
<version>${project.version}</version>
<description>
Maptology Service
</description>
<termsOfService>https://maptology.com/terms-of-service</termsOfService>
<contact>
<name>NES Universitaet Duisburg-Essen</name>
<email>nes-admin@uni-due.de</email>
<url>https://www.nes.uni-due.de</url>
</contact>
<license>
<url>https://maptology.com/license</url>
<name>Proprietary</name>
</license>
</info>
<swaggerFileName>maptology</swaggerFileName>
<swaggerDirectory>${basedir}/target/swagger/</swaggerDirectory>
<securityDefinitions>
<securityDefinition>
<name>user</name>
<type>basic</type>
<description>Operations requiring a valid user.</description>
</securityDefinition>
<securityDefinition>
<name>admin</name>
<type>basic</type>
<description>Operations requiring admin privileges.</description>
</securityDefinition>
</securityDefinitions>
</apiSource>
</apiSources>
</configuration>
</plugin>
<plugin>
<!-- attach the generated swagger file as artifact -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${basedir}/target/swagger/maptology.json</file>
<type>swagger</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.16</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.6.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
</dependencies>
</project>