code: private String getApiId(Api api) {
          return getApiId(api.getOrganizationId(), api.getApiId(), api.getVersion());
      }
docs: Generates a valid document ID for a api, used to index the api in ES.
  @param api an api
  @return a api key