Skip to content
Snippets Groups Projects
Commit 457387c3 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

fix on projectId path variable

parent f08d1cb7
No related branches found
No related tags found
1 merge request!11Resolve "Rest API should follow google guidlines"
......@@ -9,6 +9,7 @@ import javax.ws.rs.PathParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
......@@ -29,7 +30,7 @@ public class OverlayController extends BaseController {
@RequestMapping(value = "/projects/{projectId}/overlays/", method = { RequestMethod.GET }, produces = { MediaType.APPLICATION_JSON_VALUE })
public List<LayoutView> getOverlayList(//
@RequestParam(value = "token") String token, //
@PathParam(value = "projectId") String projectId//
@PathVariable(value = "projectId") String projectId //
) throws SecurityException, QueryException {
return overlayController.getOverlayList(token, projectId);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment