Endpoints - Samgbr/LSMPServiceRS GitHub Wiki
- GET Order by orderID URI: http://localhost:8082/Order/orderservice/order/{orderID}
- POST and PUT Order URI: http://localhost:8082/Order/orderservice/order
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orderRequest>
<orderID>OR88964</orderID>
<profileID>SH45452</profileID>
<orderDate>03/11/2018</orderDate>
<shipAddressID>AD78984</shipAddressID>
<orderDetails>
<orderDetailID>OD45456</orderDetailID>
<orderID>OR88964</orderID>
<orderedQuantity>1.0</orderedQuantity>
<productID>BO89789</productID>
</orderDetails>
<orderDetails>
<orderDetailID>OD45457</orderDetailID>
<orderID>OR88964</orderID>
<orderedQuantity>2.0</orderedQuantity>
<productID>BO45457</productID>
</orderDetails>
</orderRequest>
- DELETE Order URI: http://localhost:8082/Order/orderservice/order/{orderID}
- GET All Customer Profile URI: http://localhost:8082/Customer/shopperservice/shoppers
- GET a Customer Profile URI: http://localhost:8082/Customer/shopperservice/shopper/{profileID}
- POST and PUT Customer Profile URI: http://localhost:8082/Customer/shopperservice/shopper
<customerRequest>
<loginID>Dam4573</loginID>
<firstName>Daniii</firstName>
<middleName>Peteruuu</middleName>
<lastName>Yodeeeea</lastName>
<email>[email protected]</email>
<shopperType>prime</shopperType>
<addresses>
<city>Chicago</city>
<shopperProfileID>SH66668</shopperProfileID>
<state>IL</state>
<street>Clark st.</street>
<zipcode>60603</zipcode>
</addresses>
<phones>
<shopperProfileID>SH66668</shopperProfileID>
<phoneNumber>3127009977</phoneNumber>
<type>mobile</type>
</phones>
<bills>
<creditCardNumber>1999965678981414</creditCardNumber>
<cvv>337</cvv>
<expiryMonth>09</expiryMonth>
<expiryYear>22</expiryYear>
<shopperProfileID>SH66668</shopperProfileID>
</bills>
</customerRequest>
- DELETE Customer Profile URI: http://localhost:8082/Customer/shopperservice/shopper/{profileID}
- GET All Partner Profile URI: http://localhost:8082/Partner/partnerservice/partners
- GET Partner Profile URI: http://localhost:8082/Partner/partnerservice/partner/{profileID}
- PUT and POST URI: http://localhost:8082/Partner/partnerservice/partner
<partnerRequest>
<loginID>per34</loginID>
<firstName>Uddff</firstName>
<middleName>ioip</middleName>
<lastName>Papap</lastName>
<email>[email protected]</email>
<password>UUUeee</password>
<sellerLevel>Level 2</sellerLevel>
<sellerName>ZXSD CO.</sellerName>
<addresses>
<city>New Jeresy</city>
<partnerProfileID>PA45453</partnerProfileID>
<state>NJ</state>
<street>Clark st.</street>
<zipcode>60500</zipcode>
</addresses>
<addresses>
<city>Librty Ville</city>
<partnerProfileID>PA45453</partnerProfileID>
<state>IL</state>
<street>Parkway st.</street>
<zipcode>60670</zipcode>
</addresses>
<phones>
<phoneNumber>3127889900</phoneNumber>
<type>mobile</type>
<partnerProfileID>PA45453</partnerProfileID>
</phones>
<billingsInfo>
<creditCardNumber>2875565644481417</creditCardNumber>
<cvv>732</cvv>
<expiryMonth>10</expiryMonth>
<expiryYear>19</expiryYear>
<partnerProfileID>PA45453</partnerProfileID>
</billingsInfo>
</partnerRequest>
- DELETE Partner Profile URI: http://localhost:8082/Partner/partnerservice/partner/{profileID}
- GET Product Review by ProductID and ProfileID URI: http://localhost:8082/ProductReview/productreviewservice/productreview/{productID}/{profileID}
- GET All Product Reviews URI: http://localhost:8082/ProductReview/productreviewservice/productreviews
- PUT and POST Product Review URI: http://localhost:8082/ProductReview/productreviewservice/productreview
<?xml version="1.0" encoding="UTF-8"?>
<productReviewRequest>
<productReviewID>PR50002</productReviewID>
<productID>BO45457</productID>
<profileID>SH45452</profileID>
<review>This is a bad thing new</review>
<rating>2.98</rating>
</productReviewRequest>
- DELETE Product Review URI: http://localhost:8082/ProductReview/productreviewservice/productreview/{productReviewID}
- GET Product Inventory URI: http://localhost:8082/ProductInventory/productinventoryservice/productinventory/{productID}
- PUT and POST Product Inventory URI: http://localhost:8082/ProductInventory/productinventoryservice/productinventory
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<productInventoryRequest>
<inventoryID>IN78982</inventoryID>
<qtyOnHandMap>
<entry>
<key>BO45459</key>
<value>10.0</value>
</entry>
</qtyOnHandMap>
</productInventoryRequest>
- DELETE Product Inventory URI: http://localhost:8082/ProductInventory/productinventoryservice/productinventory/{productID}
All Partner products are also added here. Check the XML file below, it has partnerID, if it is partner product. If not this will be null.
- GET Book URI: http://localhost:8082/BookProduct/bookservice/book/{productID}
- GET All Books URI: http://localhost:8082/BookProduct/bookservice/books
- POST and PUT URI: http://localhost:8082/BookProduct/bookservice/book
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bookRequest>
<purchasePrice>12.99</purchasePrice>
<sellingPrice>24.99</sellingPrice>
<title>A Paint</title>
<isbn>oprdnkln22</isbn>
<publisher>Mcgraw hill</publisher>
<author>Bill Maher</author>
<edition>2th</edition>
<partnerID>PA45453</partnerID>
</bookRequest>
- DELETE Book URI: http://localhost:8082/BookProduct/bookservice/book/{productID}
- GET Smartphone URI: http://localhost:8082/SmartphoneProduct/smartphoneservice/smartphone/{productID}
- GET All Smartphone URI: http://localhost:8082/SmartphoneProduct/smartphoneservice/smartphones
- POST and PUT Smartphone URI: http://localhost:8082/SmartphoneProduct/smartphoneservice/smartphone
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<smartphoneRequest>
<productID>SP45461</productID>
<purchasePrice>799.99</purchasePrice>
<sellingPrice>899.79</sellingPrice>
<displayInch>4.5 Inch</displayInch>
<brand>Android</brand>
<ramSize>4GB</ramSize>
<os>ASUS</os>
<storageSize>64GB</storageSize>
<partnerID>PA95687</partnerID>
</smartphoneRequest>
- DELETE Smartphone URI: http://localhost:8082/SmartphoneProduct/smartphoneservice/smartphone/{productID}