public Response postAuction(CreateAuction createAuction) throws InvalidInputException{
		Auction auction = new Auction();
		int id = OurTestAuctions.size()+1;
		auction.setId(id);
		if(createAuction.getOwnerId() < 0 || createAuction.getName() == null)
			throw new InvalidInputException();
		auction.setName(createAuction.getName());
		auction.setDescription(createAuction.getDescription());
		Date startDate = createAuction.getStartDate();
		if(startDate == null){
			startDate = Calendar.getInstance().getTime();
		}
		auction.setStartDate(startDate);
		Date endDate = createAuction.getEndDate();
		if(endDate == null){
			endDate = new Date(startDate.getTime() + 604800000);
		}
		if(endDate.before(startDate)){
			throw new InvalidInputException();
		}
		auction.setEndDate(endDate);
		ProfileInformation owner = new ProfileInformation();
		owner.setId(createAuction.getOwnerId());
		owner.setDetails(Resources.serverLocation + ":7075/ProfileService/rest/profile/" + createAuction.getOwnerId());
		auction.setOwner(owner);
		auction.setStatus(Auction.Status.READY);
		double startBid = createAuction.getStartingBid();
		if(startBid == 0){
			startBid = 1;
		}
		auction.setHighestBid(startBid);
		auction.setEdit(Resources.serverLocation + ":7077/item/" + auction.getId());
		OurTestAuctions.put(auction.getId(), auction);
		return Response.ok(auction, "application/json").build();
	}