Skip to content

Commit

Permalink
fixed import, updated gitignore and pom.xml with candidate release
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Cerbo committed Nov 17, 2016
1 parent cd05792 commit 8a6bf62
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,15 @@
*.war
*.ear

# java target folder
target/

# example folder used in development to test the archetype
/example/

#IntelliJ Idea folder
/.idea/
*.iml

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import com.orientechnologies.orient.object.db.OObjectDatabaseTx;
import io.swagger.annotations.Api;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.inject.Inject;
import javax.ws.rs.*;
import javax.ws.rs.client.Client;
Expand All @@ -28,6 +31,12 @@ public class HelloResource
@Inject
OObjectDatabaseTx db;

@GET
@Path("/{user}/error")
public User error(@PathParam("user") String username){
throw new RuntimeException("errore!!!");
}

@GET
@Path("/{user}")
public User get(@PathParam("user") String username)
Expand Down
6 changes: 4 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
<module>nut-metrics</module>
<module>nut-utils</module>
<module>nut-archetype</module>
</modules>
<module>nut-errors</module>
<module>nutex</module>
</modules>

<properties>
<resteasy.version>3.0.13.Final</resteasy.version>
Expand Down Expand Up @@ -186,4 +188,4 @@
</build>


</project>
</project>

0 comments on commit 8a6bf62

Please sign in to comment.