Skip to content

silencer07/samplebackend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Aldrin Tingson's Mini backend project using java

##To run the project:

gradle clean build; java -jar build/libs/backend-0.0.1-SNAPSHOT.jar

##Create new product

curl -i -X POST -H "Content-Type:application/json" -d '{ "name" : "foo","description" : "bar","tags" : ["test"]}' http://localhost:8080/products

##Get list of products

curl http://localhost:8080/products

##Get detail about a product

curl http://localhost:8080/products/1

where 1 is the db product id

##Update certain product

curl -i -X PUT -H "Content-Type:application/json" -d '{ "name" : "fooedited","description" : "baredited","tags" : ["testedited"]}' http://localhost:8080/products/1

where 1 is the db product id

Set price points for different currencies for a product

curl -i -X POST -H "Content-Type:application/json" -d '{**"productId"** : **1**, "prices" : {"USD" : 1,"PHP" : 50}}' http://localhost:8080/products/addPrices

where productId is the db product id

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages