@RequestMapping(value = "/pulseVersion", method = RequestMethod.GET)
  public void pulseVersion(@SuppressWarnings("unused") HttpServletRequest request,
      HttpServletResponse response)
      throws IOException {

    // json object to be sent as response
    ObjectNode responseJSON = mapper.createObjectNode();

    try {
      // Response
      responseJSON.put("pulseVersion", pulseVersion.getPulseVersion());
      responseJSON.put("buildId", pulseVersion.getPulseBuildId());
      responseJSON.put("sourceDate", pulseVersion.getPulseSourceDate());
      responseJSON.put("sourceRevision", pulseVersion.getPulseSourceRevision());
      responseJSON.put("sourceRepository", pulseVersion.getPulseSourceRepository());

    } catch (Exception e) {
      logger.debug("Exception Occurred : ", e);
    }

    // Send json response
    response.getOutputStream().write(responseJSON.toString().getBytes());
  }
Method isUserLoggedIn Check whether user is logged in or not.
geode-pulse/src/main/java/org/apache/geode/tools/pulse/internal/controllers/PulseController.java