Routes are the first piece of metadata the service provides to the admin client.
Routes represent the relationship between a browser’s location, and the view it renders.
These routes typically consist of a path
, e.g. /brands
, and a componentId
, e.g. brands:browse
.
The admin client loads the entire route configuration on page load, and then uses it to route the user around the application.
Routes will be created using a Java DSL within a Spring auto-configuration class, for example:
@Configuration
public class BrandMetadataAutoConfiguration {
@Bean
public ComponentRouteLocator brandMetadataRoutes(RoutesBuilder routesBuilder) {
return routesBuilder.routes()
.route("/brands", r -> r.componentId("brands:browse"))
.build();
}
}
To learn more about routes, visit our Routes documentation.