@@ -0,0 +1,1263 @@
+package com.google.sps.servlets;%0A%0Aimport com.google.sps.data.VolunteeringOpportunity;%0Aimport com.google.sps.utilities.CommonUtils;%0Aimport com.google.sps.utilities.DatabaseConstants;%0Aimport com.google.sps.utilities.DatabaseWrapper;%0Aimport java.io.IOException;%0Aimport java.util.Set;%0Aimport javax.servlet.annotation.WebServlet;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0A/** Servlet to get all volunteering data for a given event */%0A@WebServlet(%22/%22)%0Apublic class EventVolunteeringDataServlet extends HttpServlet %7B%0A  private static final String HARDCODED_EVENT_ID = %220883de79-17d7-49a3-a866-dbd5135062a8%22;%0A  private static final DatabaseWrapper databaseWrapper =%0A      new DatabaseWrapper(DatabaseConstants.INSTANCE_ID, DatabaseConstants.DATABASE_ID);%0A%0A  @Override%0A  public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException %7B%0A    // TO DO: change eventId to parameter value%0A    Set%3CVolunteeringOpportunity%3E opportunities =%0A        databaseWrapper.getVolunteeringOpportunitesForEventId(HARDCODED_EVENT_ID);%0A%0A    response.setContentType(%22application/json;%22);%0A    response.getWriter().println(CommonUtils.convertToJson(opportunities));%0A  %7D%0A%7D%0A

Add servlet to retrieve opportunities given event id.