java 8 generate unique id for every API call code example Example: java unique id String uuid = UUID.randomUUID().toString();