Skip to content

imdadareeph/hackerrankspringbootapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hackerrankspringbootapp

hackerrankspringbootapp

Available online to test

https://hackersrankspringbootapp.herokuapp.com/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config#/

https://hackersrankspringbootapp.herokuapp.com/h2-console

Note : for h2db use
Driver Class : org.h2.Driver
JDBC URL: jdbc:h2:mem:testdb
User Name: sa
Password: blank
curl -X 'POST' \
  'http://localhost:8000/app/item' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "itemId":2,
      "itemName":"item_x2",
      "itemEnteredByUser":"user_x",
      "itemEnteredDate":"2020-05-10T13:00:41.499",
      "itemBuyingPrice":56.0,
      "itemSellingPrice":59.0,
      "itemLastModifiedDate":"2020-05-10T13:00:41.498",
      "itemLastModifiedByUser":"user_y2",
      "itemStatus":"AVAILABLE"
}'

alt text

curl -X 'GET' \
  'http://localhost:8000/app/item/1' \
  -H 'accept: */*'

alt text

curl -X 'GET' \
  'http://localhost:8000/app/itemstatus?itemStatus=AVAILABLE&enteredBy=user_x' \
  -H 'accept: */*'

alt text

curl -X 'GET' \
  'http://localhost:8000/app/item?pageSize=1&page=0&sortByField=itemEnteredByUser' \
  -H 'accept: */*'

alt text

About

hackerrankspringbootapp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages