Skip to content
Snippets Groups Projects
Commit 052d93e0 authored by Andreas Schärtl's avatar Andreas Schärtl
Browse files

experimental: set up spark.com project

Should be enough to (1) talk to the Java API and (2) provide
a JSON API for the world.

This is really just experimental. MMT should be integrated directly
w/o JSON if possible to avoid nonsensical serialization.
parent 01bc81d6
No related branches found
No related tags found
No related merge requests found
.idea
target
uloapi.iml
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>info.mathhub</groupId>
<artifactId>uloapi</artifactId>
<version>0.1</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<!-- JAR w/ dependencies: https://stackoverflow.com/questions/574594/ -->
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>info.mathhub.uloapi.Main</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.sparkjava</groupId>
<artifactId>spark-core</artifactId>
<version>2.5</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package info.mathhub.uloapi;
import static spark.Spark.*;
public class Main {
public static void main(String[] args) {
get("/hello", (req, res) -> "Hello World");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment