code: @Override
      @Path("/{solutionId}")
      @ApiOperation(value="Retrieve a solution or all solutions",
          notes="If {solutionId} is not present, returns all solutions.",
          response=Solution.class, responseContainer="List")
      public JSONObject get(String path, Map<String,String> headers) throws ServiceException, JSONException {
          SolutionServices solutionServices = ServiceLocator.getSolutionServices();
          String id = getSegment(path, 1);
          if (id != null) {
              Solution solution = solutionServices.getSolution(id);
              if (solution == null)
                  throw new ServiceException(404, "Solution not found: " + id);
              else
                  return solution.getJson();
          }
          else {
              Query query = getQuery(path, headers);
              return solutionServices.getSolutions(query).getJson();
          }
      }
docs: Retrieve a solution or the solutions list.