@@ -0,0 +1,1388 @@
+package uk.ac.ebi.quickgo.ontology;%0A%0Aimport uk.ac.ebi.quickgo.ontology.controller.ECOController;%0Aimport uk.ac.ebi.quickgo.ontology.controller.GOController;%0Aimport uk.ac.ebi.quickgo.ontology.controller.validation.OBOControllerValidationHelper;%0Aimport uk.ac.ebi.quickgo.ontology.controller.validation.OBOControllerValidationHelperImpl;%0A%0Aimport org.springframework.beans.factory.annotation.Value;%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0A%0A/**%0A * @author Tony Wardell%0A * Date: 17/01/2017%0A * Time: 13:32%0A * Created with IntelliJ IDEA.%0A */%0A@Configuration%0Apublic class OntologyRestConfig %7B%0A%0A    @Bean%0A    public OntologyPagingConfig ontologyPagingConfig(%0A            @Value(%22$%7Bontology.default_page_size:25%7D%22) int defaultPageSize) %7B%0A%0A        return () -%3E defaultPageSize;%0A    %7D%0A%0A    public interface OntologyPagingConfig%7B%0A        int defaultPageSize();%0A    %7D%0A%0A    @Bean%0A    public OBOControllerValidationHelper goValidationHelper(@Value(%22$%7Bontology.max_page_size:600%7D%22) int maxPageSize)%7B%0A        return new OBOControllerValidationHelperImpl(maxPageSize, GOController.idValidator());%0A    %7D%0A%0A    @Bean%0A    public OBOControllerValidationHelper ecoValidationHelper(@Value(%22$%7Bontology.max_page_size:600%7D%22) int maxPageSize)%7B%0A        return new OBOControllerValidationHelperImpl(maxPageSize, ECOController.idValidator());%0A    %7D%0A%7D%0A

Add configuration for pagaing related properties.