Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.

Commit

Permalink
#1 initial ping testing
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-conway committed Mar 3, 2017
1 parent b73c813 commit 5d39fc9
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 36 deletions.
2 changes: 1 addition & 1 deletion metadata-template-rest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ CMD ["/runit.sh"]

# build: docker build -t diceunc/metadata-template-rest:4.2.1.0 .

# run: docker run -d --rm -p 8080:8080 -v /etc/irods-ext:/etc/irods-ext --add-host irods420.irodslocal:172.16.250.101 diceunc/irods-base-rest:4.2.1.0
# run: docker run -d --rm -p 8080:8080 -v /etc/irods-ext:/etc/irods-ext --add-host irods420.irodslocal:172.16.250.101 diceunc/metadata-template-rest:4.2.1.0
7 changes: 6 additions & 1 deletion metadata-template-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,15 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.irods</groupId>
<artifactId>metadata-template-service-impl</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package org.irods.jargon.rest.metadatatemplate;

import javax.ws.rs.GET;
import javax.ws.rs.NotFoundException;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;

import org.springframework.beans.factory.annotation.Autowired;

@Path("/ping")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2017-02-23T17:08:15.207-05:00")
public class PingApi {
@Autowired
private PingApiService pingApiService;

@GET
@Produces({ "application/json", "application/xml" })
public Response ping(@QueryParam("midTierOnly") Boolean midTierOnly,
@Context SecurityContext securityContext) throws NotFoundException,
org.irods.jargon.rest.metadatatemplate.NotFoundException {
return pingApiService.ping(midTierOnly, securityContext);
}

/**
* @return the pingApiService
*/
public PingApiService getPingApiService() {
return pingApiService;
}

/**
* @param pingApiService
* the pingApiService to set
*/
public void setPingApiService(PingApiService pingApiService) {
this.pingApiService = pingApiService;
}
}

This file was deleted.

0 comments on commit 5d39fc9

Please sign in to comment.