Commit 3e850734 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

doc for delete overlay API call

parent 93e2dd6e
......@@ -674,10 +674,12 @@ public class OverlayControllerIntegrationTest extends ControllerIntegrationTest
MockHttpSession session = createSession(BUILT_IN_TEST_ADMIN_LOGIN, BUILT_IN_TEST_ADMIN_PASSWORD);
RequestBuilder request = delete("/projects/" + TEST_PROJECT + "/overlays/" + overlay.getId())
RequestBuilder request = delete("/projects/{projectId}/overlays/{overlayId}", TEST_PROJECT, overlay.getId())
.session(session);
mockMvc.perform(request)
.andDo(document("projects/project_overlays/delete_overlay",
getOverlayPathParameters()))
.andExpect(status().is2xxSuccessful());
assertEquals(0, layoutDao.getLayoutsByProject(project).size());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment