org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer Java Examples
The following examples show how to use
org.springframework.data.rest.webmvc.config.RepositoryRestConfigurer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CustomRestMvcConfiguration.java From yugastore-java with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.setBasePath("/api/v1"); config.exposeIdsFor(ProductMetadata.class, ProductRanking.class); } }; }
Example #2
Source File: SpringRestDataConfig.java From microservice-kubernetes with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.exposeIdsFor(Customer.class); } }; }
Example #3
Source File: SpringRestDataConfig.java From microservice-kubernetes with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.exposeIdsFor(Order.class, Item.class, Customer.class); } }; }
Example #4
Source File: SpringRestDataConfig.java From microservice-kubernetes with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.exposeIdsFor(Item.class); } }; }
Example #5
Source File: CustomRestMvcConfiguration.java From spring-data-jpa-demo with Apache License 2.0 | 5 votes |
/** * Repository rest configurer repository rest configurer. * * @return the repository rest configurer */ @Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurer() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration configuration) { configuration.exposeIdsFor(Dept.class, Employee.class); } }; }
Example #6
Source File: SpringRestDataConfig.java From microservice-kafka with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.exposeIdsFor(Order.class, Item.class, Customer.class); } }; }
Example #7
Source File: SpringRestDataConfig.java From microservice-atom with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.exposeIdsFor(Order.class, Item.class, Customer.class); } }; }
Example #8
Source File: MvcConfig.java From holdmail with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.setDefaultPageSize(150); } }; }
Example #9
Source File: SpringRestDataConfig.java From microservice-consul with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.exposeIdsFor(Order.class, Item.class, Customer.class); } }; }
Example #10
Source File: SpringRestDataConfig.java From microservice-consul with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.exposeIdsFor(Item.class); } }; }
Example #11
Source File: SpringRestDataConfig.java From microservice-consul with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.exposeIdsFor(Customer.class); } }; }
Example #12
Source File: BaseUriConfig.java From spring-content with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.setBasePath("/api"); } }; }
Example #13
Source File: SpringRestDataConfig.java From microservice with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.exposeIdsFor(Customer.class); } }; }
Example #14
Source File: SpringRestDataConfig.java From microservice with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.exposeIdsFor(Item.class); } }; }
Example #15
Source File: SpringRestDataConfig.java From microservice with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.exposeIdsFor(Order.class, Item.class, Customer.class); } }; }
Example #16
Source File: MainApp.java From botanic-ng with Apache License 2.0 | 5 votes |
@Bean public RepositoryRestConfigurer repositoryRestConfigurer() { return new RepositoryRestConfigurerAdapter() { @Override public void configureRepositoryRestConfiguration( RepositoryRestConfiguration config) { config.exposeIdsFor(Plant.class, Image.class, Garden.class); config.setBasePath("/api"); } }; }