@Path("{repositoryVersionId}/operating_systems")
  public OperatingSystemService getOperatingSystemsHandler(@PathParam("repositoryVersionId") String repositoryVersionId) {
    Map<Resource.Type, String> mapIds = new HashMap<>();
    mapIds.putAll(parentKeyProperties);
    mapIds.put(Resource.Type.CompatibleRepositoryVersion, repositoryVersionId);

    return new OperatingSystemService(mapIds);
  }
Handles ANY /{repositoryVersionId}/operating_systems requests.

@param repositoryVersionId the repository version id
@return operating systems service
ambari-server/src/main/java/org/apache/ambari/server/api/services/CompatibleRepositoryVersionService.java