Skip to content

Commit

Permalink
Testing @ApiModelProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
phillip-kruger committed Jan 17, 2018
1 parent bed219e commit af9174e
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 6 deletions.
Empty file added apiee-example/audit.log
Empty file.
18 changes: 12 additions & 6 deletions apiee-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,18 @@

</dependencies>

<properties>
<!-- Logging settings -->
<log.level>FINEST</log.level>
<log.name>com.github.phillipkruger.apiee</log.name>
</properties>

<build>
<finalName>${project.artifactId}</finalName>
</build>

<profiles>
<!-- Activate using the wildfly property: mvn clean install -Dwildfly -->
<!-- <profiles>
Activate using the wildfly property: mvn clean install -Dwildfly
<profile>
<id>wildfly</id>
<activation>
Expand All @@ -59,7 +65,7 @@
</build>
</profile>
<!-- Activate using the tomee property: mvn clean install -Dtomee -->
Activate using the tomee property: mvn clean install -Dtomee
<profile>
<id>tomee</id>
<activation>
Expand All @@ -83,7 +89,7 @@
</build>
</profile>
<!-- Activate using the payara property: mvn clean install -Dpayara -->
Activate using the payara property: mvn clean install -Dpayara
<profile>
<id>payara</id>
<activation>
Expand All @@ -107,7 +113,7 @@
</build>
</profile>
<!-- Activate using the liberty property: mvn clean install -Dliberty -->
Activate using the liberty property: mvn clean install -Dliberty
<profile>
<id>liberty</id>
<activation>
Expand All @@ -130,5 +136,5 @@
</build>
</profile>
</profiles>
</profiles>-->
</project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.github.phillipkruger.apiee.example;

import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
Expand All @@ -13,6 +14,7 @@
@XmlAccessorType(XmlAccessType.FIELD)
@AllArgsConstructor @NoArgsConstructor
public class SomeObject {
@ApiModelProperty(value = "The Name !!", dataType = "string")
@XmlAttribute
private String name;
@XmlAttribute
Expand Down
29 changes: 29 additions & 0 deletions apiee-example/src/main/openliberty/config/server.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<server description="${project.build.finalName}">

<!-- Enable features -->
<featureManager>
<feature>javaee-7.0</feature>
</featureManager>

<!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->

<httpEndpoint id="defaultHttpEndpoint"
httpPort="${httpPort}"
httpsPort="${httpsPort}"/>

<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true" />

<keyStore id="defaultKeyStore" password="0p3nL1b3ry"/>

<basicRegistry id="basic" realm="ibm/api">
<user name="guest" password="0p3nL1b3ry" />
</basicRegistry>


<application location="${project.build.directory}/${project.build.finalName}.war"/>

<logging traceSpecification="${log.name}.*=${log.level}"/>

</server>
21 changes: 21 additions & 0 deletions apiee-example/src/main/wildfly-swarm/config/standalone.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<server xmlns="urn:jboss:domain:4.0">
<profile>
<subsystem xmlns="urn:jboss:domain:logging:3.0">
<periodic-rotating-file-handler name="FILE" autoflush="true">
<file path="${wildfly-swarm.logfile}"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<root-logger>
<level name="INFO"/>
<handlers>
<handler name="FILE"/>
</handlers>
</root-logger>
<logger category="${log.name}">
<level name="${log.level}"/>
</logger>
</subsystem>
</profile>
</server>
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
<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.github.phillip-kruger</groupId>
<artifactId>javaee-servers-parent</artifactId>
<version>javaee-7-v3</version>
</parent>

<groupId>com.github.phillip-kruger</groupId>
<artifactId>apiee</artifactId>
<version>1.0.2-SNAPSHOT</version>
Expand Down

0 comments on commit af9174e

Please sign in to comment.