public Response getJobsStartedSince()

in api-server/src/main/java/org/apache/cassandra/diff/api/resources/DiffJobsResource.java [160:180]


    public Response getJobsStartedSince(@PathParam("started-after") final String minStart,
                                        @PathParam("started-before") final String maxStart) {

        DateTime minStartDate = parseDate(minStart);
        if (minStartDate == null)
            return Response.status(400).entity("Invalid date, please supply in the format yyyy-MM-dd").build();

        DateTime maxStartDate = null;
        if (isNullOrEmpty(maxStart)) {
            DateTime.now(DateTimeZone.UTC);
        }
        else {
            maxStartDate = parseDate(maxStart);
            if (maxStartDate == null)
                return Response.status(400).entity("Invalid date, please supply in the format yyyy-MM-dd").build();
            if (maxStartDate.compareTo(minStartDate) < 0)
                return Response.status(400).entity("Invalid date range, started-before cannot be earlier than started-after").build();
        }

        return getJobsStartedBetween(minStartDate, maxStartDate);
    }