-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from Sc0up/restdocs/group
[Freddie] 그룹 목업 API 및 REST Docs 문서
- Loading branch information
Showing
11 changed files
with
291 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
== 그룹 삭제 | ||
|
||
=== `POST /api/groups/{groupId}` | ||
|
||
=== `204 No Content` | ||
|
||
operation::group_acceptance_test/delete_group[snippets='path-parameters,http-request,http-response'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
== 그룹 이름 중복 확인 | ||
|
||
=== `GET /groups/{groupId}` | ||
|
||
=== `200 Ok` | ||
|
||
operation::group_acceptance_test/validate_group_name[snippets='request-parameters,response-fields,http-request,http-response'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
== 그룹 상세 조회 | ||
|
||
=== `GET /groups/{groupId}` | ||
|
||
=== `200 Ok` | ||
|
||
operation::group_acceptance_test/read_one[snippets='path-parameters,response-fields,http-request,http-response'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/com/postsquad/scoup/web/group/controller/request/GroupValidationRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.postsquad.scoup.web.group.controller.request; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import javax.validation.constraints.NotNull; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Data | ||
@Builder | ||
public class GroupValidationRequest { | ||
|
||
@NotNull | ||
private String groupName; | ||
} |
12 changes: 0 additions & 12 deletions
12
src/main/java/com/postsquad/scoup/web/group/controller/response/GroupDetailResponse.java
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
src/main/java/com/postsquad/scoup/web/group/controller/response/GroupReadOneResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.postsquad.scoup.web.group.controller.response; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
@Data | ||
// TODO: 전체조회 머지되면 BaseResponse와 합치기 | ||
public class GroupReadOneResponse { | ||
|
||
private long id; | ||
|
||
private String name; | ||
|
||
private String description; | ||
|
||
private String image; | ||
} |
7 changes: 4 additions & 3 deletions
7
src/main/java/com/postsquad/scoup/web/group/controller/response/GroupValidationResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.