/spark-starter

Spark Framewok Demo and Start Project

Primary LanguageJavaApache License 2.0Apache-2.0

Spark-Starter-Project

Spark Framewok Demo and Start Project

  • Java 8
  • Jetty Server;
  • Gson;
  • SLF4j;
  • Junit;
  • UniRest Client;

HOW-TO-BUILD

./gradlew build

HOW-TO-TEST

./gradlew test

HOW-TO-RUN

After build execute command:

java -jar build/libs/spark-starter-1.0-SNAPSHOT.jar

REST API

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