Coder Social home page Coder Social logo

birch_x_project_fe's People

Contributors

poc7667 avatar

Watchers

 avatar

Forkers

yhchen-stef

birch_x_project_fe's Issues

product json - 0512

[
    {
        "id": 1,
        "name": "New Apple iPhone 12",
        "description": "Ceramic Shield, tougher than any smartphone glass A14 Bionic chip, the fastest chip ever in a smartphone Advanced dual-camera system with 12MP Ultra Wide and Wide cameras; Night mode, Deep Fusion, Smart HDR 3, 4K Dolby Vision HDR recording 12MP TrueDepth front camera with Night mode, 4K Dolby Vision HDR recording",
        "minPrice": 829.0,
        "reviewScore": 3.25,
        "image": "https://m.media-amazon.com/images/I/71E5zB1qbIL._FMwebp__.jpg"
    },
    {
        "id": 2,
        "name": "Object Oriented Analysis & Design Cookbook: Introduction to Practical System Modeling",
        "description": "Best OOAD book ever",
        "minPrice": 39.84,
        "reviewScore": 5.0,
        "image": "https://images-na.ssl-images-amazon.com/images/I/61QthZv-OKL.jpg"
    },
    {
        "id": 3,
        "name": "Funko Pop! Marvel: Falcon and The Winter Soldier - Capatain America (Sam Wilson) with Shield, Year of The Shield Amazon Exclusive",
        "description": "Funko presents Marvel Year of the Shield, the collectible series exclusively available here. This series is made to celebrate heroes who wield shields to protect the innocent from villains whether they appear in the Marvel comics, movies, or both. Bring home new figures of a variety of heroes for your Marvel collection by subscribing today! A new figure is released every other month, and the second figure of this 8-part series is Pop! Falcon. This Pop! features Sam Wilson in his red, white, and blue costume, at the ready with his shield. Sam Wilson has been a longtime partner to Captain America, and did not hesitate to take up his new position as Falcon alongside Captain America and the Avengers. Pop! Falcon Captain America is ready to take up his post in your Marvel collection. Vinyl figure is approximately 3.75-inches tall and comes in a window display box.",
        "minPrice": 11.99,
        "reviewScore": 4.6667,
        "image": "https://images-na.ssl-images-amazon.com/images/I/61R9D-S0AwS._AC_SL1300_.jpg"
    },
    {
        "id": 4,
        "name": "Hudson Baby Unisex Baby Plush Animal Face Robe",
        "description": "100% Polyester Imported Animal face plush hooded bath robe Made with 100% plush coral fleece fabric Soft and gentle on baby's skin Optimal for everyday use Affordable, high quality bath robe",
        "minPrice": 9.54,
        "reviewScore": 4.3333,
        "image": "https://images-na.ssl-images-amazon.com/images/I/810%2Bv4Lu2QL._SX425_.jpg"
    },
    {
        "id": 5,
        "name": "LS Jumbo Deluxe Folding Shopping Cart with Dual Swivel Wheels and Double Basket- 200 lb Capacity",
        "description": "Made of heavy-duty steel; Foldable Features double front swivel wheels; Oversized wheels Features 2 baskets; Handle with soft grip Thick gauge steel on wheel axles Capacity of 200 pounds",
        "minPrice": 56.51,
        "reviewScore": 2.0,
        "image": "https://images-na.ssl-images-amazon.com/images/I/71Seq8%2BS6rL._AC_SL1435_.jpg"
    },
    {
        "id": 6,
        "name": "ASUS Laptop L210 Ultra Thin Laptop, 11.6” HD Display, Intel Celeron N4020 Processor, 4GB RAM, 64GB Storage, NumberPad, Windows 10 Home in S Mode with One Year of Microsoft 365 Personal, L210MA-DB01",
        "description": "Efficient Intel Celeron N4020 Processor (4M Cache, up to 2.8 GHz) 11.6” HD (1366 x 768) Slim Display 64GB eMMC Flash Storage and 4GB DDR4 RAM Windows 10 in S Mode with One Year of Microsoft 365 Personal Slim and Portable: 0.7” thin and weighs only 2.2 lbs (battery included)",
        "minPrice": 349.99,
        "reviewScore": 5.0,
        "image": "https://images-na.ssl-images-amazon.com/images/I/81oVSSITRQL._AC_SL1500_.jpg"
    }
]

new products json

[
    {
        "id": 1,
        "product": 1,
        "size": "64GB",
        "color": "RED",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71E5zB1qbIL._FMwebp__.jpg",
        "price": 829.0,
        "stock": 20
    },
    {
        "id": 2,
        "product": 1,
        "size": "128GB",
        "color": "RED",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71E5zB1qbIL._FMwebp__.jpg",
        "price": 879.0,
        "stock": 25
    },
    {
        "id": 3,
        "product": 1,
        "size": "256GB",
        "color": "RED",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71E5zB1qbIL._FMwebp__.jpg",
        "price": 979.0,
        "stock": 36
    },
    {
        "id": 4,
        "product": 1,
        "size": "64GB",
        "color": "BLUE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71ZOtNdaZCL._FMwebp__.jpg",
        "price": 829.0,
        "stock": 21
    },
    {
        "id": 5,
        "product": 1,
        "size": "128GB",
        "color": "BLUE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71ZOtNdaZCL._FMwebp__.jpg",
        "price": 879.0,
        "stock": 32
    },
    {
        "id": 6,
        "product": 1,
        "size": "256GB",
        "color": "BLUE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71ZOtNdaZCL._FMwebp__.jpg",
        "price": 979.0,
        "stock": 31
    },
    {
        "id": 7,
        "product": 1,
        "size": "64GB",
        "color": "WHITE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/711wsjBtWeL._FMwebp__.jpg",
        "price": 829.0,
        "stock": 1
    },
    {
        "id": 8,
        "product": 1,
        "size": "128GB",
        "color": "WHITE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/711wsjBtWeL._FMwebp__.jpg",
        "price": 879.0,
        "stock": 3
    },
    {
        "id": 9,
        "product": 1,
        "size": "256GB",
        "color": "WHITE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/711wsjBtWeL._FMwebp__.jpg",
        "price": 979.0,
        "stock": 5
    },
    {
        "id": 10,
        "product": 1,
        "size": "64GB",
        "color": "BLACK",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71fVoqRC0wL._FMwebp__.jpg",
        "price": 829.0,
        "stock": 10
    },
    {
        "id": 11,
        "product": 1,
        "size": "128GB",
        "color": "BLACK",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71fVoqRC0wL._FMwebp__.jpg",
        "price": 879.0,
        "stock": 16
    },
    {
        "id": 12,
        "product": 1,
        "size": "256GB",
        "color": "BLACK",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71fVoqRC0wL._FMwebp__.jpg",
        "price": 979.0,
        "stock": 5
    },
    {
        "id": 13,
        "product": 2,
        "size": null,
        "color": null,
        "style": null,
        "image": "https://images-na.ssl-images-amazon.com/images/I/61QthZv-OKL.jpg",
        "price": 39.84,
        "stock": 100
    },
    {
        "id": 14,
        "product": 3,
        "size": null,
        "color": null,
        "style": null,
        "image": "https://images-na.ssl-images-amazon.com/images/I/61R9D-S0AwS._AC_SL1300_.jpg",
        "price": 11.99,
        "stock": 501
    },
    {
        "id": 15,
        "product": 4,
        "size": "0-9 Months",
        "color": "Blue Elephat",
        "style": null,
        "image": "https://images-na.ssl-images-amazon.com/images/I/810%2Bv4Lu2QL._SX425_.jpg",
        "price": 9.54,
        "stock": 50
    },
    {
        "id": 16,
        "product": 4,
        "size": "0-9 Months",
        "color": "White Chicken",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71UQ1r-fBeL._SL1500_.jpg",
        "price": 12.59,
        "stock": 26
    },
    {
        "id": 17,
        "product": 4,
        "size": "0-9 Months",
        "color": "Blue Alligator",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/81IhD1Bkp8L._SL1500_.jpg",
        "price": 12.99,
        "stock": 12
    },
    {
        "id": 18,
        "product": 5,
        "size": null,
        "color": null,
        "style": null,
        "image": "https://images-na.ssl-images-amazon.com/images/I/71Seq8%2BS6rL._AC_SL1435_.jpg",
        "price": 56.51,
        "stock": 30
    },
    {
        "id": 19,
        "product": 6,
        "size": null,
        "color": null,
        "style": "Intel i3-1005G1 | 4GB RAM | 128G SSD",
        "image": "https://images-na.ssl-images-amazon.com/images/I/81oVSSITRQL._AC_SL1500_.jpg",
        "price": 349.99,
        "stock": 35
    },
    {
        "id": 20,
        "product": 6,
        "size": null,
        "color": null,
        "style": "Intel i3-1005G1 | 8GB RAM | 128G SSD",
        "image": "https://m.media-amazon.com/images/I/81fstJkUlaL._AC_SL1500_.jpg",
        "price": 453.0,
        "stock": 36
    },
    {
        "id": 21,
        "product": 6,
        "size": null,
        "color": null,
        "style": "Intel i7-1165G7 | 8GB RAM | 512GB SSD",
        "image": "https://images-na.ssl-images-amazon.com/images/I/81HUTXm2ClL._AC_SL1500_.jpg",
        "price": 696.65,
        "stock": 20
    }
]

creditCards json - 0512

[
    {
        "id": 7,
        "order": 2,
        "method": "CreditCrard",
        "paidDate": "2021-05-12T19:49:45.229613Z",
        "billingAddress": "1123 Grant Rd, Los Altos, CA 94024",
        "holder": "Ying Hua Chen",
        "number": "379122164211234666",
        "expiry": "2026-01-31",
        "code": "1234"
    }
]

reviews json - 0512


[
    {
        "id": 1,
        "product": 1,
        "sku": 1,
        "score": 2,
        "comment": "\"The product came with continuous software issues. The product was not damaged, and like all Apple products was packaged quite well. With that said, after booting it up I ran into non-stop issues. Everything from getting into my Apple ID Account, to getting my information transferred over. I spent most of my first day on the phone with Apple Care.  Aside from having that largest bezels, smallest battery (2,815mAh), slowest refresh rates (60Hz), and overpriced hardware, it looks nice and has a very fast processor! All things said, 5G is several years out and this phone is too.  For $800+ the Samsung S20FE or OnePlus 8 would be amazing alternatives.  Heck I would even buy the Pixel 5 over this.  Apple please listen to your customer base.  They don't want 5G or even better cameras. YOU'RE APPLE! This phone should have the smallest bezels, the largest battery, at least 8GB or RAM and 120Hz screen refresh like everyone else in the industry has been had for a year! Then you can charge $800 without a charger... lol  Come on now!\"",
        "customer": 1
    },
    {
        "id": 2,
        "product": 1,
        "sku": 5,
        "score": 1,
        "comment": "First you don’t get AirPods Apple also doesn’t give you the transformer you get the cord on the right side with the Sim card supposed to be it’s filled in and it’s different color than the rest of the case for that much money $100 more than the iPhone 11 I felt I got ripped off so don’t waste your money I got stuck with the fall next year I will go for Samsung no more Apple ripping me off captez",
        "customer": 1
    },
    {
        "id": 3,
        "product": 1,
        "sku": 5,
        "score": 5,
        "comment": "\"I think personally that it is a good upgrade compared to the iPhone 11 from what people are saying that there phone broke after falling off the bed really ? I don’t believe that crap first of all I bought this phone from apple and I dropped it by accident face first on my driveway it didn’t brake the phone is good over all second of all The whole changing situation people are saying the Charger is uncommon what the hell no it’s a usbc to lighting cable usbc Charging bricks are everywhere my point is before you make a comment about this phone have some common sense about apple products\"",
        "customer": 1
    },
    {
        "id": 4,
        "product": 1,
        "sku": 4,
        "score": 5,
        "comment": "This phone is a phone. I think. Phone.",
        "customer": 1
    },
    {
        "id": 5,
        "product": 2,
        "sku": 13,
        "score": 5,
        "comment": "This book describes entire software development lifecycle incredibly well. It equips the reader a framework of thinking from the point use case and requirements are given to the engineers until it is becomes a UML. The examples provided are vivid and on point. Concepts of each next chapter has continuity from the previous chapter, which gives the reader progressive feedback. ABCDFG method that covered in this book provides a formalized way to transform use case into classes, I really love it, it is directly applicable to my job and it is a gold imo. Even an experienced coders would reap aha moments during reading. Also, the fact that it is written in the valley provides a flavor of how software development is done at the epicenter of technology.",
        "customer": 1
    },
    {
        "id": 6,
        "product": 2,
        "sku": 13,
        "score": 5,
        "comment": "I got this book for my friend since she is interested in learning object-oriented programming and design. This book exposed her to different methodologies with clear descriptions and concrete examples and helpful graphics. Before reading this book, she had limited experience in OOAD and practical system modeling. This book did a good job comprehensively explaining analysis, design, UML, and design principles among other topics. In particular, the step-by-step design examples are very reader-friendly. For example, one case shows how to present code from use cases with UML graphs by applying the ABCDFG method. It also introduced her to different UML architecture diagrams, like layer, flow, and sequence diagrams. What she likes most about this book is the exercises section, which provides simple tests to let her know whether she really understands the concepts or not. She found it very easy to apply the methodologies from this book to her work.",
        "customer": 1
    },
    {
        "id": 7,
        "product": 2,
        "sku": 13,
        "score": 5,
        "comment": "\"I am a computer science student and found this textbook to be a tremendously useful introduction and resource for object-oriented software design and engineering.  The text is a wonderfully-written discussion of the major topics in object-oriented design, with straightforward prose, plentiful examples, and high-quality diagrams and visuals. The book is well-designed and flows naturally from chapter to chapter. It's a quick read from start to finish, but also contains sufficient detail on each subject to serve as a comprehensive reference.  In addition to being a strong writer, it is clear that the author has deep experience in software design. The OOAD Cookbook is an indispensable reference for any software designer, whether a beginner first learning the concepts in an academic setting, or an experienced software engineer looking to improve his or her craft.\"",
        "customer": 1
    },
    {
        "id": 8,
        "product": 3,
        "sku": 14,
        "score": 4,
        "comment": "Arrived broken and it's a pain to take it somewhere to return.",
        "customer": 1
    },
    {
        "id": 9,
        "product": 3,
        "sku": 14,
        "score": 5,
        "comment": "He looks so much like Mackey- even exudes his energy. I made my own wings.",
        "customer": 1
    },
    {
        "id": 10,
        "product": 3,
        "sku": 14,
        "score": 5,
        "comment": "as a collector, & a captain america fan, i approve of this funko pop.",
        "customer": 1
    },
    {
        "id": 11,
        "product": 4,
        "sku": 15,
        "score": 5,
        "comment": "Cutest baby robe ever! My daughter wears 6-9 month clothes and there’s still plenty of room in this for her. If you had an extremely tall baby, it may not be as good, but it is perfect for the average 6 month old!",
        "customer": 1
    },
    {
        "id": 12,
        "product": 4,
        "sku": 16,
        "score": 5,
        "comment": "My son loves his robe and so do we! Great comfy rob!",
        "customer": 1
    },
    {
        "id": 13,
        "product": 4,
        "sku": 17,
        "score": 3,
        "comment": "\"This little robe is absolutely adorable and super soft. My baby loves to be snuggled up and cuddled and looks ridiculously cute in his little fox robe. Unfortunately it isn't the BEST quality, but isn't horribly made. For the price it is acceptable. So I won't give it less than 3 stars.  My main issues are the size of the robe and shrinkage of the material. The robe is VERY small. My baby is 3 months old and it is really short on him; nearly up to his baby butt cheeks already. He won't be able to use it until 9 months old for sure.  The fabric is very soft and fluffy. it will feel great on baby's delicate skin. Unfortunately it shrank with the first wash. A little shrinkage is expected, but it will shrink quite a bit, even when following laundering instructions.  This is a very soft and very cute robe. However, if you have a bigger baby, I would consider purchasing a larger robe. This robe will not fit your baby very long. For the money it isn't bad, but it definitely isn't the best.\"",
        "customer": 1
    },
    {
        "id": 14,
        "product": 5,
        "sku": 18,
        "score": 1,
        "comment": "This is NOT a sturdy cart. I have no idea why it is advertised as \"Amazon's Choice.\" Contrary to the advertisement and description, the steel is very light gauge and seems rather flimsy. I would hesitate to load it with much weight at all. It seems like it would break easily. The front wheels do not turn easily and the materials used in the construction of the cart are not strong. I was very disappointed when I assembled the cart. I would return it immediately but that is difficult since it is already assembled and the box it came in feel apart when we opened it. Everything about this cart is cheap and certainly not worth the extra dollars it cost. I'm really surprised about Amazon.",
        "customer": 1
    },
    {
        "id": 15,
        "product": 5,
        "sku": 18,
        "score": 1,
        "comment": "Used it twice and while pushing it the front wheel broke causing me to fall over the cart! Very disappointing! Because it seemed like a good Cart with good reviews when I purchased it.",
        "customer": 1
    },
    {
        "id": 16,
        "product": 5,
        "sku": 18,
        "score": 4,
        "comment": "Cart is bigger than I expected, but that has turned out to be a positive. We have just moved into a senior residential facility, and our parking place is a considerable distance away. The front wheels can be a little difficult to line up when making turns. All in all, I would recommend",
        "customer": 1
    },
    {
        "id": 17,
        "product": 6,
        "sku": 19,
        "score": 5,
        "comment": "If you keep your expectations inline, like others have already stated, you will be very happy with this little guy. I upgraded the hard drive from the built in eMMC to an NVMe via the M2. slot (Kingston A2000, 250gb @$49.99, read=1300/write=1000 verified) and it makes this laptop very zippy to operate. I tested the built-in eMMC and it still gets a respectable 300mb read/200mb write speed, so if you don't want to upgrade it will still be fast enough. Don't expect to do things like gaming(unless you're thinking about something like Microsoft cloud gamepass for PC, launches in the spring). It will do great with everything else, from movies to excel , or any program that's not resource intensive nature. Overall I highly recommend this laptop and at this price it provides an abundance of value.",
        "customer": 1
    },
    {
        "id": 18,
        "product": 6,
        "sku": 20,
        "score": 5,
        "comment": "\"It boots fast and the battery lasts a long time. I did add a 128GB micro SDXC card. The touch pad also is a calculator for all things very cool it can be turned on and off. I am very happy with my purchase.\"",
        "customer": 1
    },
    {
        "id": 19,
        "product": 6,
        "sku": 21,
        "score": 5,
        "comment": "\"Before returning the product for slow speed, BE SURE TO UPDATE WINDOWS WITH THE WINDOWS UPDATER IN THE LAPTOP!! You Asus will then operate at a very nice speed!\"",
        "customer": 1
    }
]

deliveries json - 0512

[
    {
        "id": 1,
        "order": 1,
        "shipment": 2,
        "deliveredDate": "2021-05-12T20:08:18.891320Z",
        "employee": 1
    }
]

paypals json - 0512


[
    {
        "id": 6,
        "order": 1,
        "method": "Paypal",
        "paidDate": "2021-05-12T19:47:45.453595Z",
        "billingAddress": "2175 Grant Rd, Los Altos, CA 94024",
        "account": "123456789123"
    }
]

payments json - 0512

[
    {
        "id": 6,
        "order": 1,
        "method": "Paypal",
        "paidDate": "2021-05-12T19:47:45.453595Z",
        "billingAddress": "2175 Grant Rd, Los Altos, CA 94024"
    },
    {
        "id": 7,
        "order": 2,
        "method": "CreditCrard",
        "paidDate": "2021-05-12T19:49:45.229613Z",
        "billingAddress": "1123 Grant Rd, Los Altos, CA 94024"
    },
    {
        "id": 8,
        "order": 3,
        "method": "WareTransfer",
        "paidDate": "2021-05-12T19:57:27.582891Z",
        "billingAddress": "1 Grant Rd, Los Altos, CA 94024"
    }
]

order json - 0512

[
    {
        "id": 1,
        "status": "new",
        "orderedDate": "2021-05-10T06:24:51.564622Z",
        "price": 4306.99,
        "customer": 1
    },
    {
        "id": 2,
        "status": "paid",
        "orderedDate": "2021-05-10T06:25:11.680347Z",
        "price": 4476.0,
        "customer": 1
    }
]

Submit order

Python

@csrf_exempt
def orders(request):
    if request.method == 'POST':
        # post_data = json.loads(request.body.decode("utf-8"))
        .....


POST Request

{
    "user": {
        "id": 1,
        "firstName": "Ying-Hua",
        "lastName": "Chen",
        "phone": "+8869123123123",
        "email": "[email protected]"
    },
    "items": [
        {
            "name": "Object Oriented Analysis & Design Cookbook: Introduction to Practical System Modeling",
            "sku": {
                "id": 13,
                "product": 2,
                "size": null,
                "color": null,
                "style": null,
                "image": "https://images-na.ssl-images-amazon.com/images/I/61QthZv-OKL.jpg",
                "price": 39.84,
                "stock": 100,
                "productId": 2,
                "title": ""
            },
            "quantity": 7
        },
        {
            "name": "Funko Pop! Marvel: Falcon and The Winter Soldier - Capatain America (Sam Wilson) with Shield, Year of The Shield Amazon Exclusive",
            "sku": {
                "id": 14,
                "product": 3,
                "size": null,
                "color": null,
                "style": null,
                "image": "https://images-na.ssl-images-amazon.com/images/I/61R9D-S0AwS._AC_SL1300_.jpg",
                "price": 11.99,
                "stock": 501,
                "productId": 3,
                "title": ""
            },
            "quantity": 2
        }
    ],
    "contact": {
        "firstName": "Ying",
        "lastName": "Chen",
        "streetAddress": "1549 Belleville Way",
        "apartment": "unit A",
        "postcode": "94087",
        "state": "CA",
        "city": "Sunnyvale",
        "phone": "310-437-3860",
        "email": "[email protected]"
    },
    "paymentInfo": {
        "type": "ach",
        "payload": {
            "account_number": "312312",
            "routing_number": "123423423423"
        }
    }
}

wareTransfer - 0512

[
    {
        "id": 8,
        "order": 3,
        "method": "WareTransfer",
        "paidDate": "2021-05-12T19:57:27.582891Z",
        "billingAddress": "1 Grant Rd, Los Altos, CA 94024",
        "bankID": "123456781234",
        "bankName": "BOA"
    }
]

sku json - 0512

[
    {
        "id": 1,
        "product": 1,
        "size": "64GB",
        "color": "RED",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71E5zB1qbIL._FMwebp__.jpg",
        "price": 829.0,
        "stock": 20
    },
    {
        "id": 2,
        "product": 1,
        "size": "128GB",
        "color": "RED",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71E5zB1qbIL._FMwebp__.jpg",
        "price": 879.0,
        "stock": 25
    },
    {
        "id": 3,
        "product": 1,
        "size": "256GB",
        "color": "RED",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71E5zB1qbIL._FMwebp__.jpg",
        "price": 979.0,
        "stock": 36
    },
    {
        "id": 4,
        "product": 1,
        "size": "64GB",
        "color": "BLUE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71ZOtNdaZCL._FMwebp__.jpg",
        "price": 829.0,
        "stock": 21
    },
    {
        "id": 5,
        "product": 1,
        "size": "128GB",
        "color": "BLUE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71ZOtNdaZCL._FMwebp__.jpg",
        "price": 879.0,
        "stock": 32
    },
    {
        "id": 6,
        "product": 1,
        "size": "256GB",
        "color": "BLUE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71ZOtNdaZCL._FMwebp__.jpg",
        "price": 979.0,
        "stock": 31
    },
    {
        "id": 7,
        "product": 1,
        "size": "64GB",
        "color": "WHITE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/711wsjBtWeL._FMwebp__.jpg",
        "price": 829.0,
        "stock": 1
    },
    {
        "id": 8,
        "product": 1,
        "size": "128GB",
        "color": "WHITE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/711wsjBtWeL._FMwebp__.jpg",
        "price": 879.0,
        "stock": 3
    },
    {
        "id": 9,
        "product": 1,
        "size": "256GB",
        "color": "WHITE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/711wsjBtWeL._FMwebp__.jpg",
        "price": 979.0,
        "stock": 5
    },
    {
        "id": 10,
        "product": 1,
        "size": "64GB",
        "color": "BLACK",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71fVoqRC0wL._FMwebp__.jpg",
        "price": 829.0,
        "stock": 10
    },
    {
        "id": 11,
        "product": 1,
        "size": "128GB",
        "color": "BLACK",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71fVoqRC0wL._FMwebp__.jpg",
        "price": 879.0,
        "stock": 16
    },
    {
        "id": 12,
        "product": 1,
        "size": "256GB",
        "color": "BLACK",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71fVoqRC0wL._FMwebp__.jpg",
        "price": 979.0,
        "stock": 5
    },
    {
        "id": 13,
        "product": 2,
        "size": null,
        "color": null,
        "style": null,
        "image": "https://images-na.ssl-images-amazon.com/images/I/61QthZv-OKL.jpg",
        "price": 39.84,
        "stock": 100
    },
    {
        "id": 14,
        "product": 3,
        "size": null,
        "color": null,
        "style": null,
        "image": "https://images-na.ssl-images-amazon.com/images/I/61R9D-S0AwS._AC_SL1300_.jpg",
        "price": 11.99,
        "stock": 501
    },
    {
        "id": 15,
        "product": 4,
        "size": "0-9 Months",
        "color": "Blue Elephat",
        "style": null,
        "image": "https://images-na.ssl-images-amazon.com/images/I/810%2Bv4Lu2QL._SX425_.jpg",
        "price": 9.54,
        "stock": 50
    },
    {
        "id": 16,
        "product": 4,
        "size": "0-9 Months",
        "color": "White Chicken",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71UQ1r-fBeL._SL1500_.jpg",
        "price": 12.59,
        "stock": 26
    },
    {
        "id": 17,
        "product": 4,
        "size": "0-9 Months",
        "color": "Blue Alligator",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/81IhD1Bkp8L._SL1500_.jpg",
        "price": 12.99,
        "stock": 12
    },
    {
        "id": 18,
        "product": 5,
        "size": null,
        "color": null,
        "style": null,
        "image": "https://images-na.ssl-images-amazon.com/images/I/71Seq8%2BS6rL._AC_SL1435_.jpg",
        "price": 56.51,
        "stock": 30
    },
    {
        "id": 19,
        "product": 6,
        "size": null,
        "color": null,
        "style": "Intel i3-1005G1 | 4GB RAM | 128G SSD",
        "image": "https://images-na.ssl-images-amazon.com/images/I/81oVSSITRQL._AC_SL1500_.jpg",
        "price": 349.99,
        "stock": 35
    },
    {
        "id": 20,
        "product": 6,
        "size": null,
        "color": null,
        "style": "Intel i3-1005G1 | 8GB RAM | 128G SSD",
        "image": "https://m.media-amazon.com/images/I/81fstJkUlaL._AC_SL1500_.jpg",
        "price": 453.0,
        "stock": 36
    },
    {
        "id": 21,
        "product": 6,
        "size": null,
        "color": null,
        "style": "Intel i7-1165G7 | 8GB RAM | 512GB SSD",
        "image": "https://images-na.ssl-images-amazon.com/images/I/81HUTXm2ClL._AC_SL1500_.jpg",
        "price": 696.65,
        "stock": 20
    }
]

lineitems json - 0512

[
    {
        "id": 1,
        "order": 1,
        "sku": 1,
        "quantity": 2,
        "price": 1658.0
    },
    {
        "id": 2,
        "order": 1,
        "sku": 5,
        "quantity": 3,
        "price": 2637.0
    },
    {
        "id": 3,
        "order": 1,
        "sku": 14,
        "quantity": 1,
        "price": 11.99
    },
    {
        "id": 4,
        "order": 2,
        "sku": 11,
        "quantity": 2,
        "price": 1758.0
    },
    {
        "id": 5,
        "order": 2,
        "sku": 20,
        "quantity": 6,
        "price": 2718.0
    }
]

shipments json - 0512

[
    {
        "id": 1,
        "order": 1,
        "recipient": "Ying-Hua",
        "recipientPhone": "+12125552368",
        "shippingAddress": "2175 Grant Rd, Los Altos, CA 94024",
        "shipDate": "2021-05-12T06:45:30.562701Z"
    },
    {
        "id": 2,
        "order": 2,
        "recipient": "John",
        "recipientPhone": "+12125552361",
        "shippingAddress": "2176 Grant Rd, Los Altos, CA 94024",
        "shipDate": "2021-05-12T06:46:20.061671Z"
    }
]

new reviews json


[
    {
        "id": 1,
        "product": 1,
        "sku": 1,
        "score": 2,
        "comment": "\"The product came with continuous software issues. The product was not damaged, and like all Apple products was packaged quite well. With that said, after booting it up I ran into non-stop issues. Everything from getting into my Apple ID Account, to getting my information transferred over. I spent most of my first day on the phone with Apple Care.\n\nAside from having that largest bezels, smallest battery (2,815mAh), slowest refresh rates (60Hz), and overpriced hardware, it looks nice and has a very fast processor! All things said, 5G is several years out and this phone is too.  For $800+ the Samsung S20FE or OnePlus 8 would be amazing alternatives.  Heck I would even buy the Pixel 5 over this.\n\nApple please listen to your customer base.  They don't want 5G or even better cameras. YOU'RE APPLE! This phone should have the smallest bezels, the largest battery, at least 8GB or RAM and 120Hz screen refresh like everyone else in the industry has been had for a year! Then you can charge $800 without a charger... lol\n\nCome on now!\""
    },
    {
        "id": 2,
        "product": 1,
        "sku": 5,
        "score": 1,
        "comment": "First you don’t get AirPods Apple also doesn’t give you the transformer you get the cord on the right side with the Sim card supposed to be it’s filled in and it’s different color than the rest of the case for that much money $100 more than the iPhone 11 I felt I got ripped off so don’t waste your money I got stuck with the fall next year I will go for Samsung no more Apple ripping me off captez"
    },
    {
        "id": 3,
        "product": 1,
        "sku": 5,
        "score": 5,
        "comment": "\"I think personally that it is a good upgrade compared to the iPhone 11 from what people are saying that there phone broke after falling off the bed really ? I don’t believe that crap first of all I bought this phone from apple and I dropped it by accident face first on my driveway it didn’t brake the phone is good over all second of all\nThe whole changing situation people are saying the\nCharger is uncommon what the hell no it’s a usbc to lighting cable usbc Charging bricks are everywhere my point is before you make a comment about this phone have some common sense about apple products\""
    },
    {
        "id": 4,
        "product": 1,
        "sku": 4,
        "score": 5,
        "comment": "This phone is a phone. I think. Phone."
    },
    {
        "id": 5,
        "product": 2,
        "sku": 13,
        "score": 5,
        "comment": "This book describes entire software development lifecycle incredibly well. It equips the reader a framework of thinking from the point use case and requirements are given to the engineers until it is becomes a UML. The examples provided are vivid and on point. Concepts of each next chapter has continuity from the previous chapter, which gives the reader progressive feedback. ABCDFG method that covered in this book provides a formalized way to transform use case into classes, I really love it, it is directly applicable to my job and it is a gold imo. Even an experienced coders would reap aha moments during reading. Also, the fact that it is written in the valley provides a flavor of how software development is done at the epicenter of technology."
    },
    {
        "id": 6,
        "product": 2,
        "sku": 13,
        "score": 5,
        "comment": "I got this book for my friend since she is interested in learning object-oriented programming and design. This book exposed her to different methodologies with clear descriptions and concrete examples and helpful graphics. Before reading this book, she had limited experience in OOAD and practical system modeling. This book did a good job comprehensively explaining analysis, design, UML, and design principles among other topics. In particular, the step-by-step design examples are very reader-friendly. For example, one case shows how to present code from use cases with UML graphs by applying the ABCDFG method. It also introduced her to different UML architecture diagrams, like layer, flow, and sequence diagrams. What she likes most about this book is the exercises section, which provides simple tests to let her know whether she really understands the concepts or not. She found it very easy to apply the methodologies from this book to her work."
    },
    {
        "id": 7,
        "product": 2,
        "sku": 13,
        "score": 5,
        "comment": "\"I am a computer science student and found this textbook to be a tremendously useful introduction and resource for object-oriented software design and engineering.\n\nThe text is a wonderfully-written discussion of the major topics in object-oriented design, with straightforward prose, plentiful examples, and high-quality diagrams and visuals. The book is well-designed and flows naturally from chapter to chapter. It's a quick read from start to finish, but also contains sufficient detail on each subject to serve as a comprehensive reference.\n\nIn addition to being a strong writer, it is clear that the author has deep experience in software design. The OOAD Cookbook is an indispensable reference for any software designer, whether a beginner first learning the concepts in an academic setting, or an experienced software engineer looking to improve his or her craft.\""
    },
    {
        "id": 8,
        "product": 3,
        "sku": 14,
        "score": 4,
        "comment": "Arrived broken and it's a pain to take it somewhere to return."
    },
    {
        "id": 9,
        "product": 3,
        "sku": 14,
        "score": 5,
        "comment": "He looks so much like Mackey- even exudes his energy. I made my own wings."
    },
    {
        "id": 10,
        "product": 3,
        "sku": 14,
        "score": 5,
        "comment": "as a collector, & a captain america fan, i approve of this funko pop."
    },
    {
        "id": 11,
        "product": 4,
        "sku": 15,
        "score": 5,
        "comment": "Cutest baby robe ever! My daughter wears 6-9 month clothes and there’s still plenty of room in this for her. If you had an extremely tall baby, it may not be as good, but it is perfect for the average 6 month old!"
    },
    {
        "id": 12,
        "product": 4,
        "sku": 16,
        "score": 5,
        "comment": "My son loves his robe and so do we! Great comfy rob!"
    },
    {
        "id": 13,
        "product": 4,
        "sku": 17,
        "score": 3,
        "comment": "\"This little robe is absolutely adorable and super soft. My baby loves to be snuggled up and cuddled and looks ridiculously cute in his little fox robe. Unfortunately it isn't the BEST quality, but isn't horribly made. For the price it is acceptable. So I won't give it less than 3 stars.\n\nMy main issues are the size of the robe and shrinkage of the material. The robe is VERY small. My baby is 3 months old and it is really short on him; nearly up to his baby butt cheeks already. He won't be able to use it until 9 months old for sure.\n\nThe fabric is very soft and fluffy. it will feel great on baby's delicate skin. Unfortunately it shrank with the first wash. A little shrinkage is expected, but it will shrink quite a bit, even when following laundering instructions.\n\nThis is a very soft and very cute robe. However, if you have a bigger baby, I would consider purchasing a larger robe. This robe will not fit your baby very long. For the money it isn't bad, but it definitely isn't the best.\""
    },
    {
        "id": 14,
        "product": 5,
        "sku": 18,
        "score": 1,
        "comment": "This is NOT a sturdy cart. I have no idea why it is advertised as \"Amazon's Choice.\" Contrary to the advertisement and description, the steel is very light gauge and seems rather flimsy. I would hesitate to load it with much weight at all. It seems like it would break easily. The front wheels do not turn easily and the materials used in the construction of the cart are not strong. I was very disappointed when I assembled the cart. I would return it immediately but that is difficult since it is already assembled and the box it came in feel apart when we opened it. Everything about this cart is cheap and certainly not worth the extra dollars it cost. I'm really surprised about Amazon."
    },
    {
        "id": 15,
        "product": 5,
        "sku": 18,
        "score": 1,
        "comment": "Used it twice and while pushing it the front wheel broke causing me to fall over the cart! Very disappointing! Because it seemed like a good Cart with good reviews when I purchased it."
    },
    {
        "id": 16,
        "product": 5,
        "sku": 18,
        "score": 4,
        "comment": "Cart is bigger than I expected, but that has turned out to be a positive. We have just moved into a senior residential facility, and our parking place is a considerable distance away. The front wheels can be a little difficult to line up when making turns. All in all, I would recommend"
    },
    {
        "id": 17,
        "product": 6,
        "sku": 19,
        "score": 5,
        "comment": "If you keep your expectations inline, like others have already stated, you will be very happy with this little guy. I upgraded the hard drive from the built in eMMC to an NVMe via the M2. slot (Kingston A2000, 250gb @$49.99, read=1300/write=1000 verified) and it makes this laptop very zippy to operate. I tested the built-in eMMC and it still gets a respectable 300mb read/200mb write speed, so if you don't want to upgrade it will still be fast enough. Don't expect to do things like gaming(unless you're thinking about something like Microsoft cloud gamepass for PC, launches in the spring). It will do great with everything else, from movies to excel , or any program that's not resource intensive nature. Overall I highly recommend this laptop and at this price it provides an abundance of value."
    },
    {
        "id": 18,
        "product": 6,
        "sku": 20,
        "score": 5,
        "comment": "\"It boots fast and the battery lasts a long time. I did add a 128GB micro SDXC card.\nThe touch pad also is a calculator for all things very cool it can be turned on and off.\nI am very happy with my purchase.\""
    },
    {
        "id": 19,
        "product": 6,
        "sku": 21,
        "score": 5,
        "comment": "\"Before returning the product for slow speed, BE SURE TO UPDATE WINDOWS WITH THE WINDOWS UPDATER IN THE LAPTOP!!\nYou Asus will then operate at a very nice speed!\""
    }
]

new sku format

[
    {
        "id": 1,
        "product": 1,
        "size": "64GB",
        "color": "RED",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71E5zB1qbIL._FMwebp__.jpg",
        "price": 829.0,
        "stock": 20
    },
    {
        "id": 2,
        "product": 1,
        "size": "128GB",
        "color": "RED",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71E5zB1qbIL._FMwebp__.jpg",
        "price": 879.0,
        "stock": 25
    },
    {
        "id": 3,
        "product": 1,
        "size": "256GB",
        "color": "RED",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71E5zB1qbIL._FMwebp__.jpg",
        "price": 979.0,
        "stock": 36
    },
    {
        "id": 4,
        "product": 1,
        "size": "64GB",
        "color": "BLUE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71ZOtNdaZCL._FMwebp__.jpg",
        "price": 829.0,
        "stock": 21
    },
    {
        "id": 5,
        "product": 1,
        "size": "128GB",
        "color": "BLUE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71ZOtNdaZCL._FMwebp__.jpg",
        "price": 879.0,
        "stock": 32
    },
    {
        "id": 6,
        "product": 1,
        "size": "256GB",
        "color": "BLUE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71ZOtNdaZCL._FMwebp__.jpg",
        "price": 979.0,
        "stock": 31
    },
    {
        "id": 7,
        "product": 1,
        "size": "64GB",
        "color": "WHITE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/711wsjBtWeL._FMwebp__.jpg",
        "price": 829.0,
        "stock": 1
    },
    {
        "id": 8,
        "product": 1,
        "size": "128GB",
        "color": "WHITE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/711wsjBtWeL._FMwebp__.jpg",
        "price": 879.0,
        "stock": 3
    },
    {
        "id": 9,
        "product": 1,
        "size": "256GB",
        "color": "WHITE",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/711wsjBtWeL._FMwebp__.jpg",
        "price": 979.0,
        "stock": 5
    },
    {
        "id": 10,
        "product": 1,
        "size": "64GB",
        "color": "BLACK",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71fVoqRC0wL._FMwebp__.jpg",
        "price": 829.0,
        "stock": 10
    },
    {
        "id": 11,
        "product": 1,
        "size": "128GB",
        "color": "BLACK",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71fVoqRC0wL._FMwebp__.jpg",
        "price": 879.0,
        "stock": 16
    },
    {
        "id": 12,
        "product": 1,
        "size": "256GB",
        "color": "BLACK",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71fVoqRC0wL._FMwebp__.jpg",
        "price": 979.0,
        "stock": 5
    },
    {
        "id": 13,
        "product": 2,
        "size": null,
        "color": null,
        "style": null,
        "image": "https://images-na.ssl-images-amazon.com/images/I/61QthZv-OKL.jpg",
        "price": 39.84,
        "stock": 100
    },
    {
        "id": 14,
        "product": 3,
        "size": null,
        "color": null,
        "style": null,
        "image": "https://images-na.ssl-images-amazon.com/images/I/61R9D-S0AwS._AC_SL1300_.jpg",
        "price": 11.99,
        "stock": 501
    },
    {
        "id": 15,
        "product": 4,
        "size": "0-9 Months",
        "color": "Blue Elephat",
        "style": null,
        "image": "https://images-na.ssl-images-amazon.com/images/I/810%2Bv4Lu2QL._SX425_.jpg",
        "price": 9.54,
        "stock": 50
    },
    {
        "id": 16,
        "product": 4,
        "size": "0-9 Months",
        "color": "White Chicken",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/71UQ1r-fBeL._SL1500_.jpg",
        "price": 12.59,
        "stock": 26
    },
    {
        "id": 17,
        "product": 4,
        "size": "0-9 Months",
        "color": "Blue Alligator",
        "style": null,
        "image": "https://m.media-amazon.com/images/I/81IhD1Bkp8L._SL1500_.jpg",
        "price": 12.99,
        "stock": 12
    },
    {
        "id": 18,
        "product": 5,
        "size": null,
        "color": null,
        "style": null,
        "image": "https://images-na.ssl-images-amazon.com/images/I/71Seq8%2BS6rL._AC_SL1435_.jpg",
        "price": 56.51,
        "stock": 30
    },
    {
        "id": 19,
        "product": 6,
        "size": null,
        "color": null,
        "style": "Intel i3-1005G1 | 4GB RAM | 128G SSD",
        "image": "https://images-na.ssl-images-amazon.com/images/I/81oVSSITRQL._AC_SL1500_.jpg",
        "price": 349.99,
        "stock": 35
    },
    {
        "id": 20,
        "product": 6,
        "size": null,
        "color": null,
        "style": "Intel i3-1005G1 | 8GB RAM | 128G SSD",
        "image": "https://m.media-amazon.com/images/I/81fstJkUlaL._AC_SL1500_.jpg",
        "price": 453.0,
        "stock": 36
    },
    {
        "id": 21,
        "product": 6,
        "size": null,
        "color": null,
        "style": "Intel i7-1165G7 | 8GB RAM | 512GB SSD",
        "image": "https://images-na.ssl-images-amazon.com/images/I/81HUTXm2ClL._AC_SL1500_.jpg",
        "price": 696.65,
        "stock": 20
    }
]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.