code: @GET
      @Path("{typeName}")
      @Produces(Servlets.JSON_MEDIA_TYPE)
      public Response getDefinition(@Context HttpServletRequest request, @PathParam("typeName") String typeName) {
          if (LOG.isDebugEnabled()) {
              LOG.debug("==> TypesResource.getDefinition({})", typeName);
          }
  
          AtlasPerfTracer perf = null;
  
          if (AtlasPerfTracer.isPerfTraceEnabled(PERF_LOG)) {
              perf = AtlasPerfTracer.getPerfTracer(PERF_LOG, "TypesResource.getDefinition(" + typeName + ")");
          }
  
          JSONObject response = new JSONObject();
  
          try {
              TypesDef typesDef       = TypeConverterUtil.toTypesDef(typeRegistry.getType(typeName), typeRegistry);;
              String   typeDefinition = TypesSerialization.toJson(typesDef);
  
              response.put(AtlasClient.TYPENAME, typeName);
              response.put(AtlasClient.DEFINITION, new JSONObject(typeDefinition));
              response.put(AtlasClient.REQUEST_ID, Servlets.getRequestId());
  
              return Response.ok(response).build();
          } catch (AtlasBaseException e) {
              LOG.error("Unable to get type definition for type {}", typeName, e);
              throw new WebApplicationException(Servlets.getErrorResponse(e));
          } catch (JSONException | IllegalArgumentException e) {
              LOG.error("Unable to get type definition for type {}", typeName, e);
              throw new WebApplicationException(Servlets.getErrorResponse(e, Response.Status.BAD_REQUEST));
          } catch (WebApplicationException e) {
              LOG.error("Unable to get type definition for type {}", typeName, e);
              throw e;
          } catch (Throwable e) {
              LOG.error("Unable to get type definition for type {}", typeName, e);
              throw new WebApplicationException(Servlets.getErrorResponse(e, Response.Status.INTERNAL_SERVER_ERROR));
          } finally {
              AtlasPerfTracer.log(perf);
  
              if (LOG.isDebugEnabled()) {
                  LOG.debug("<== TypesResource.getDefinition({})", typeName);
              }
          }
      }
docs: Fetch the complete definition of a given type name which is unique.
  
  @param typeName name of a type which is unique.