This is a sample project exposing a single endpoint for creating a Subscription
-
Installation process
-
Download the project from Git
-
Software dependencies
-
Latest releases
-
API references
Build:
1. From root folder run: mvn clean compile
Run:
-
From the root folder, in a terminal shell do: mvn spring-boot:run
OR, in IntelliJ go the SubscriptionApplication class; Right click and then left-click "run"
-
Use Postman to execute a 'Post' operation with 'http://localhost:8080/subscriptions' as the URI and send
-
{
"name": "clarkKent", "email": "[email protected]", "user-type": "superUser", "company": "Daily Planet Inc.", "application-type": "news" }
as the payload, setting the type to 'raw' and the drop-down to 'JSON'
-
Test
- From IntelliJ:: Under src/e2e/java/scenarios, run the SubscriptionEndpointScenariosE2E class
- Using Maven commandline:: from app-root folder[~??\walmart-coding-assignment], run mvn verify -Pe2e-test