docker pull ajigile/rest-test:2
docker run --rm -p 8080:8080 -ti ajigile/rest-test:2
Note: wait until the service finish starting-up.
-
List of customers, also showing the 2 custom fields, paginated and sorted by customer name
-
List all customer
curl -v "http://localhost:8080/customer"
-
Displaying first 2 customers (total 4), first page
curl -v "http://localhost:8080/customer?size=2&page=0"
-
Displaying next 2 customers (total 4), second page
curl -v "http://localhost:8080/customer?size=2&page=1"
-
Sort (descending) customer by their first name
curl -v "http://localhost:8080/customer?sort=firstName,desc"
-
-
Average time for a lead to become a prospect and a prospect to become a customer
curl -v "http://localhost:8080/api/rest/avgLeads"
-
An end point showing all the customers grouped by tag and vice versa
curl -v "http://localhost:8080/api/rest/customerTag"
curl -v "http://localhost:8080/api/rest/customer{?page,size,sort}"
Note: you can use parameters (size, page, sort) as point 1. above