コード例 #1
0
  /**
   * Return JSON response showing data groups available to this user
   *
   * @return String with JSON response
   */
  @GET
  @Authenticated
  @Path("/list")
  @Produces(MediaType.APPLICATION_JSON)
  public Response bcidList() {
    BcidMinter bcidMinter = new BcidMinter();
    String username = null;
    if (user != null) {
      username = user.getUsername();
    }
    JSONArray response = bcidMinter.bcidList(username);

    return Response.ok(response.toJSONString()).build();
  }