Spark Framewok Demo and Start Project
- Java 8
- Jetty Server;
- Gson;
- SLF4j;
- Junit;
- UniRest Client;
./gradlew build
./gradlew test
After build execute command:
java -jar build/libs/spark-starter-1.0-SNAPSHOT.jar
GET -> http://localhost:4567/product
GET -> http://localhost:4567/product/:id
POST -> http://localhost:4567/product
{
"name": "playstation",
"price": 1000
}
PUT -> http://localhost:4567/product/:id
{
"name": "playstation",
"price": 1000
}
DELETE -> http://localhost:4567/product/:id