code: @Override
      @Path("/{solutionId}/{memberType}")
      @ApiOperation(value="Create a solution or add a member to an existing solution",
          notes="Supported memberTypes: requests, tasks, processes, solutions.", response=StatusMessage.class)
      @ApiImplicitParams({
          @ApiImplicitParam(name="Solution", paramType="body", dataType="com.centurylink.mdw.model.workflow.Solution")})
      public JSONObject post(String path, JSONObject content, Map<String,String> headers)
      throws ServiceException, JSONException {
          String id = getSegment(path, 1);
          String rel = getSegment(path, 2);
  
          SolutionServices solutionServices = ServiceLocator.getSolutionServices();
          if (rel == null) {
              Solution existing = solutionServices.getSolution(id);
              if (existing != null)
                  throw new ServiceException(HTTP_409_CONFLICT, "Solution ID already exists: " + id);
              Solution solution = new Solution(content);
              solution.setOwnerType(OwnerType.USER);
              String userId = headers.get(Listener.AUTHENTICATED_USER_HEADER);
              solution.setOwnerId(userId);
              solution.setCreatedBy(userId);
              solutionServices.createSolution(solution);
          }
          else if (rel.equals("requests")) {
              String requestId = getSegment(path, 3);
              solutionServices.addMemberToSolution(id, MemberType.MasterRequest, requestId);
          }
          else if (rel.equals("tasks")) {
              String taskInstanceId = getSegment(path, 3);
              solutionServices.addMemberToSolution(id, MemberType.TaskInstance, taskInstanceId);
          }
          else if (rel.equals("processes")) {
              String processInstanceId = getSegment(path, 3);
              solutionServices.addMemberToSolution(id, MemberType.ProcessInstance, processInstanceId);
          }
          else if (rel.equals("solutions")) {
              String memebrSolId = getSegment(path, 3);
              solutionServices.addMemberToSolution(id, MemberType.Solution, memebrSolId);
          }
          else {
              String msg = "Unsupported relationship for solution " + id + ": " + rel;
              throw new ServiceException(HTTP_400_BAD_REQUEST, msg);
          }
          return null;
      }
docs: For create (creating a new solution, or creating a new solution/member).