Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jan Smejkal
Pa165 Secret Archive
Commits
d89ebeee
Commit
d89ebeee
authored
Apr 26, 2022
by
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
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
d89ebeee
...
...
@@ -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
...
...
secret-archive-api/pom.xml
View file @
d89ebeee
...
...
@@ -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>
...
...
secret-archive-api/src/main/java/cz/fi/muni/pa165/seminar4/group7/rest/ApiUris.java
0 → 100644
View file @
d89ebeee
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_ = "/";
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment