@Override
  public List<PostProcessor> getPostProcessors() {
    List<PostProcessor> listProcessors = super.getPostProcessors();
    listProcessors.add(new CompatibleRepositoryVersionHrefProcessor());
    return listProcessors;
  }
ResourceDefinition with a custom href post processor which overrides the URL
ambari-server/src/main/java/org/apache/ambari/server/api/resources/CompatibleRepositoryVersionDefinition.java