I am using spring=data-rest and I would like to remove ALPs url(/profile) from my rest service. I have gone through below issues, but still open for long time
Disabling ALPS does not remove the profile link [DATAREST-1119]
DATAREST-1119: Remove profile link in case ALPS is disabled
I tried configurations as below to disable ALPs, but no luck when go and hit /profile still it is active/available
@Configuration
public class ApiRestConfiguration implements RepositoryRestConfigurer {
@Override
public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config, CorsRegistry cors) {
System.err.println("Disabled alps**********************");
config.getMetadataConfiguration().setAlpsEnabled(false);
}
}
If anyone is able to fix it please do share your fixes.