Commit 206eb7d7 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

documentation for project remove API call

parent 7e1c15b1
......@@ -82,3 +82,21 @@ include::{snippets}/projects/project_data/update/curl-request.adoc[]
=== Sample Response
include::{snippets}/projects/project_data/update/response-body.adoc[]
== Delete project
=== Path Parameters
include::{snippets}/projects/project_data/delete/path-parameters.adoc[]
//=== Request Fields
//include::{snippets}/projects/project_data/delete/request-fields.adoc[]
//=== Response Fields
//include::{snippets}/projects/project_data/delete/response-fields.adoc[]
=== CURL sample
include::{snippets}/projects/project_data/delete/curl-request.adoc[]
=== Sample Response
include::{snippets}/projects/project_data/delete/response-body.adoc[]
......@@ -405,10 +405,13 @@ public class ProjectControllerIntegrationTestWithoutTransaction extends Controll
return null;
});
request = delete("/projects/" + testProject2)
request = delete("/projects/{projectId}/", testProject2)
.session(createSession(BUILT_IN_ADMIN_LOGIN, BUILT_IN_ADMIN_PASSWORD));
mockMvc.perform(request).andExpect(status().is2xxSuccessful());
mockMvc.perform(request).andExpect(status().is2xxSuccessful())
.andDo(document("projects/project_data/delete",
pathParameters(parameterWithName("projectId").description("project identifier")),
snippets.getProjectSnippet()));
} finally {
callInSeparateThread(() -> {
......
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