Commit d89ebeee authored by Smejky338's avatar Smejky338
Browse files

Basic skeleton of webserver on localhost:8080/pa165

TODO controllers and routing
parent e3179807
Pipeline #133026 waiting for manual action with stage
......@@ -29,7 +29,9 @@ Make sure you are using Java 11 to build and run the project.
Build: `mvn clean install`
Run: `cd secret-service-dao && mvn spring-boot:run`
Run: `cd secret-archive-dao && mvn spring-boot:run`
Run REST API: `mvn clean install && cd secret-archive-dao && mvn cargo:run`
The API will be available at localhost:8080/pa165.
There is h2 console is available at https://localhost:8080/h2-console, User Name: admin, Password: admin
......
......@@ -4,8 +4,11 @@
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>
<artifactId>secret-archive-api</artifactId>
<artifactId>pa165</artifactId>
<version>0.0.1-SNAPSHOT</version>
<!-- for web cargo -->
<packaging>war</packaging>
<properties>
<maven.compiler.source>11</maven.compiler.source>
......@@ -19,7 +22,30 @@
<version>0.0.1-SNAPSHOT</version>
</parent>
<build>
<plugins>
<!-- embedded tomcat -->
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven3-plugin</artifactId>
<version>1.9.11</version>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-api</artifactId>
<version>${tomcat.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.dozermapper</groupId>
<artifactId>dozer-core</artifactId>
......
package cz.fi.muni.pa165.seminar4.group7.rest;
package cz.fi.muni.pa165.rest;
/**
* Represents the entry points for the API
* @author Jan Smejkal, inspired from brossi
*/
public abstract class ApiUris {
public static final String ROOT_URI_COUNTRIES = "/countries";
public static final String ROOT_URI_AGENTS = "/agents";
public static final String ROOT_URI_MISSIONS = "/missions";
public static final String ROOT_URI_REPORTS = "/reports";
public static final String ROOT_URI_RESOURCES = "/resources";
//public static final String ROOT_URI_ = "/";
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment