Commit 302c26f7 authored by 六幻's avatar 六幻
Browse files

addMember should return 201 CREATED rather than 200 OK

parent 62309b4a
......@@ -304,7 +304,7 @@ public class ProjectApi extends AbstractApi {
Form formData = new Form();
formData.param("user_id", userId.toString());
formData.param("access_level", accessLevel.toString());
Response response = post(Response.Status.OK, formData, "projects", projectId, "members");
Response response = post(Response.Status.CREATED, formData, "projects", projectId, "members");
return (response.readEntity(Member.class));
}
......
Supports Markdown
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