rest api with query parameters example