Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add all HTML/JS/CSS files into src/main/webapp directory.

Added /api prefix to all api calls.
  • Loading branch information...
commit be533ca61e78ea281468d25235ab0059f3d67dce 1 parent 54ce465
@shsu authored
View
2  src/main/java/ca/bcit/infosys/comp4911/services/JaxRsActivator.java
@@ -3,7 +3,7 @@
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
-@ApplicationPath("/")
+@ApplicationPath("/api")
public class JaxRsActivator extends Application {
}
View
2  src/main/java/ca/bcit/infosys/comp4911/services/StatusResource.java
@@ -18,7 +18,7 @@ public String test() {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("<link href=\"//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css\" rel=\"stylesheet\">");
stringBuffer.append("<div class=\"container\"><br />");
- stringBuffer.append("<div class=\"alert alert-success\"><h3>All Systems Operational</h3></div>");
+ stringBuffer.append("<div class=\"alert alert-success\"><h3>API Endpoint is Operational</h3></div>");
stringBuffer.append("</div>");
return stringBuffer.toString();
}
View
9 src/main/webapp/index.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title></title>
+</head>
+<body>
+ <h1>Regular Systems OK</h1>
+</body>
+</html>
View
2  src/test/java/ca/bcit/infosys/comp4911/services/UserResourceTest.java
@@ -11,7 +11,7 @@
import static org.hamcrest.Matchers.equalTo;
public class UserResourceTest {
- private static final String url = "https://comp4911-stevenhsu.rhcloud.com";
+ private static final String url = "https://comp4911-stevenhsu.rhcloud.com/api";
private JSONObject authorizationJSONObject;
View
2  src/test/java/ca/bcit/infosys/comp4911/services/UsersResourceTest.java
@@ -12,7 +12,7 @@
import static org.junit.Assert.assertFalse;
public class UsersResourceTest {
- private static final String url = "https://comp4911-stevenhsu.rhcloud.com";
+ private static final String url = "https://comp4911-stevenhsu.rhcloud.com/api";
private String token;
Please sign in to comment.
Something went wrong with that request. Please try again.