Error with package path

This commit is contained in:
2020-06-10 14:51:12 +02:00
parent 3775f96f3f
commit f671baf7f0
9 changed files with 180 additions and 17 deletions

View File

@ -4,6 +4,7 @@ package org.hso.ecommerce.supplier;
import org.hso.ecommerce.supplier.data.Delivery;
import org.hso.ecommerce.supplier.data.DeliveryManager;
import org.hso.ecommerce.supplier.data.ReturnStatus;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
@ -22,7 +23,7 @@ public class RequestController {
return delivery.getUuid().toString();
}
@GetMapping("/status")
@GetMapping(value = "/status", produces = MediaType.APPLICATION_JSON_VALUE)
public ReturnStatus searchArticles(@RequestParam(value = "trackingID") String trackingID, HttpServletRequest request, HttpServletResponse response) {
Delivery delivery = DeliveryManager.getInstance().getDeliveryByeID(trackingID);