Added more fields to the rest API and fixed documentation not using the right schema