Java Code Examples for org.springframework.data.rest.core.config.RepositoryRestConfiguration#setBasePath()
The following examples show how to use
org.springframework.data.rest.core.config.RepositoryRestConfiguration#setBasePath() .
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: JournalAutoConfiguration.java From pro-spring-boot with Apache License 2.0 | 5 votes |
@Override protected void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { if (null == journal.getApiPath()) config.setBasePath(API_PATH); else config.setBasePath(journal.getApiPath()); }
Example 2
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"); } }; }
Example 3
Source File: JournalAutoConfiguration.java From pro-spring-boot with Apache License 2.0 | 5 votes |
@Override protected void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { if (null == journal.getApiPath()) config.setBasePath(API_PATH); else config.setBasePath(journal.getApiPath()); }
Example 4
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 5
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 6
Source File: CustomRepositoryRestConfigurerAdapter.java From Spring with Apache License 2.0 | 5 votes |
@Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.setBasePath("myapi"); config.setDefaultMediaType(MediaType.APPLICATION_JSON); config.setDefaultPageSize(5); super.configureRepositoryRestConfiguration(config); }
Example 7
Source File: AccountServiceApplication.java From microservices-event-sourcing with Apache License 2.0 | 4 votes |
@Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.setBasePath("/api"); }
Example 8
Source File: UserApplication.java From cloud-native-microservice-strangler-example with GNU General Public License v3.0 | 4 votes |
@Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.setBasePath("/api"); }
Example 9
Source File: ProfileApplication.java From cloud-native-microservice-strangler-example with GNU General Public License v3.0 | 4 votes |
@Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.setBasePath("/api"); }
Example 10
Source File: InventoryServiceApplication.java From microservices-event-sourcing with Apache License 2.0 | 4 votes |
@Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.exposeIdsFor(Catalog.class, Product.class); config.setBasePath("/api"); }
Example 11
Source File: ShoppingCartApplication.java From spring-cloud-event-sourcing-example with GNU General Public License v3.0 | 4 votes |
@Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.exposeIdsFor(Order.class); config.setBasePath("/api"); }
Example 12
Source File: UserApplication.java From spring-cloud-event-sourcing-example with GNU General Public License v3.0 | 4 votes |
@Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.setBasePath("/api"); }
Example 13
Source File: InventoryApplication.java From spring-cloud-event-sourcing-example with GNU General Public License v3.0 | 4 votes |
@Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.setBasePath("/api"); }
Example 14
Source File: OrderApplication.java From spring-cloud-event-sourcing-example with GNU General Public License v3.0 | 4 votes |
@Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.setBasePath("/api"); }
Example 15
Source File: AccountApplication.java From spring-cloud-event-sourcing-example with GNU General Public License v3.0 | 4 votes |
@Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.setBasePath("/api"); }
Example 16
Source File: UserServiceApplication.java From microservices-event-sourcing with Apache License 2.0 | 4 votes |
@Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.setBasePath("/api"); }
Example 17
Source File: CartServiceApplication.java From microservices-event-sourcing with Apache License 2.0 | 4 votes |
@Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { config.exposeIdsFor(Order.class); config.setBasePath("/api"); }