Skip to content

Coding Assignment Given to Me by Walmart - Java Springboot Rest Api - Simple POST endpoint with conditions

Notifications You must be signed in to change notification settings

dbercier/walmart-coding-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a sample project exposing a single endpoint for creating a Subscription

Getting Started

  1. Installation process

  2. Download the project from Git

  3. Software dependencies

  4. Latest releases

  5. API references

Build and Test

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

  1. From IntelliJ:: Under src/e2e/java/scenarios, run the SubscriptionEndpointScenariosE2E class
  2. Using Maven commandline:: from app-root folder[~??\walmart-coding-assignment], run mvn verify -Pe2e-test

About

Coding Assignment Given to Me by Walmart - Java Springboot Rest Api - Simple POST endpoint with conditions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages