Add generation as a REST resource