andronisdre / SpeedAuctionBackend

Grupp SpeedAuction backend gruppuppgift
1 stars 0 forks source link

43 auctiontypecar #47

Closed MalekGulli closed 7 months ago

MalekGulli commented 7 months ago

checka ut min branch kolla så koden ser bra ut och testa i postman!

POST http://localhost:8080/api/auctionTypeCar { "auctionId": "65ef86be38dd8a7f2312a9fb", "brand": "MERCEDES", "car_model": "C63", "yearManufactured": 2024, "milesDriven": 500, "color": [ "RED" ], "car_png": "ksks", "reg_number": "abc123", "condition": "GOOD", "description": "easypeasy" }

GET

http://localhost:8080/api/auctionTypeCar/:id

http://localhost:8080/api/auctionTypeCar/filterByBrand/:brand

http://localhost:8080/api/auctions/filterByStartingBidBetween/:minStartingBid/:maxStartingBid

http://localhost:8080/api/auctionTypeCar/all

http://localhost:8080/api/auctionTypeCar/filterByMilesDriven/:minMilesDriven/:maxMilesDriven

http://localhost:8080/api/auctionTypeCar/filterByYearManufactured/:minYearManufactured/:maxYearManufactured

http://localhost:8080/api/auctionTypeCar/filterByColor/:color

DELETE

http://localhost:8080/api/auctionTypeCar/:id