code: @GET
      @Path("{guid}/traits")
      @Produces(Servlets.JSON_MEDIA_TYPE)
      public Response getTraitNames(@PathParam("guid") String guid) {
          if (LOG.isDebugEnabled()) {
              LOG.debug("==> EntityResource.getTraitNames({})", guid);
          }
  
          AtlasPerfTracer perf = null;
          try {
              if (AtlasPerfTracer.isPerfTraceEnabled(PERF_LOG)) {
                  perf = AtlasPerfTracer.getPerfTracer(PERF_LOG, "EntityResource.getTraitNames(" + guid + ")");
              }
  
              if (LOG.isDebugEnabled()) {
                  LOG.debug("Fetching trait names for entity={}", guid);
              }
  
              final List<AtlasClassification> classifications = entitiesStore.getClassifications(guid);
  
              List<String> traitNames = new ArrayList<>();
              for (AtlasClassification classification : classifications) {
                  traitNames.add(classification.getTypeName());
              }
  
              JSONObject response = new JSONObject();
              response.put(AtlasClient.REQUEST_ID, Servlets.getRequestId());
              response.put(AtlasClient.RESULTS, new JSONArray(traitNames));
              response.put(AtlasClient.COUNT, traitNames.size());
  
              return Response.ok(response).build();
          } catch (AtlasBaseException e) {
              LOG.error("Unable to get trait definition for entity {}", guid, e);
              throw toWebApplicationException(e);
          } catch (IllegalArgumentException e) {
              LOG.error("Unable to get trait definition for entity {}", guid, e);
              throw new WebApplicationException(Servlets.getErrorResponse(e, Response.Status.BAD_REQUEST));
          } catch (WebApplicationException e) {
              LOG.error("Unable to get trait names for entity {}", guid, e);
              throw e;
          } catch (Throwable e) {
              LOG.error("Unable to get trait names for entity {}", guid, e);
              throw new WebApplicationException(Servlets.getErrorResponse(e, Response.Status.INTERNAL_SERVER_ERROR));
          } finally {
              AtlasPerfTracer.log(perf);
  
              if (LOG.isDebugEnabled()) {
                  LOG.debug("<== EntityResource.getTraitNames({})", guid);
              }
          }
      }
docs: Gets the list of trait names for a given entity represented by a guid.
  
  @param guid globally unique identifier for the entity
  @return a list of trait names for the given entity guid