PUT /members/openprofile HTTP/1.1
+PUT /members/open-profile-url HTTP/1.1
Content-Type: application/json
Content-Length: 66
Host: localhost:8080
@@ -1581,9 +1601,816 @@
HTTP response
-HTTP/1.1 200 OK
+HTTP/1.1 204 No Content
+
+
diff --git a/backend/emm-sale/src/docs/asciidoc/index.adoc b/backend/emm-sale/src/docs/asciidoc/index.adoc index d3f71ca08..85bb2e326 100644 --- a/backend/emm-sale/src/docs/asciidoc/index.adoc +++ b/backend/emm-sale/src/docs/asciidoc/index.adoc @@ -194,3 +194,16 @@ include::{snippets}/modify-comment/http-response.adoc[] .HTTP response 설명 include::{snippets}/modify-comment/response-fields.adoc[] + +== Login + +=== `POST` : 로그인 및 가입 + +.HTTP request +include::{snippets}/login-snippet/http-request.adoc[] + +.HTTP response +include::{snippets}/login-snippet/http-response.adoc[] + +.HTTP response +include::{snippets}/login-snippet/response-fields.adoc[] diff --git a/backend/emm-sale/src/main/resources/static/docs/index.html b/backend/emm-sale/src/main/resources/static/docs/index.html index 84d1746b5..59803df07 100644 --- a/backend/emm-sale/src/main/resources/static/docs/index.html +++ b/backend/emm-sale/src/main/resources/static/docs/index.html @@ -469,6 +469,26 @@
PUT
: 사용자의 Open Profile URL 업데이트PUT /members/openprofile HTTP/1.1
+PUT /members/open-profile-url HTTP/1.1
Content-Type: application/json
Content-Length: 66
Host: localhost:8080
@@ -1581,9 +1601,816 @@
HTTP response
-HTTP/1.1 200 OK
+HTTP/1.1 204 No Content
+
+
GET
: 행사 상세정보 조회GET /events/1 HTTP/1.1
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 272
+
+{
+ "id" : 1,
+ "name" : "인프콘 2023",
+ "informationUrl" : "http://infcon.com",
+ "startDate" : "2023:08:15:12:00:00",
+ "endDate" : "2023:08:15:12:00:00",
+ "location" : "코엑스",
+ "status" : "예정",
+ "tags" : [ "코틀린", "백엔드", "안드로이드" ]
+}
+Path | +Type | +Description | +
---|---|---|
|
+
|
+event 식별자 |
+
|
+
|
+envent 이름 |
+
|
+
|
+상세정보 url |
+
|
+
|
+시작일자 |
+
|
+
|
+종료일자 |
+
|
+
|
+장소 |
+
|
+
|
+진행상태 |
+
|
+
|
+태그들 |
+
POST
: 컨퍼런스에 함께가기 요청(컨퍼런스에 함께 가는 멤버에 등록)POST /events/1/participants HTTP/1.1
+Content-Type: application/json
+Authorization: Bearer accessToken
+Content-Length: 20
+Host: localhost:8080
+
+{
+ "memberId" : 2
+}
+HTTP/1.1 201 Created
+Location: /events/1/participants/3
+GET
: 행사 목록 조회GET /events?year=2023&month=7 HTTP/1.1
+Host: localhost:8080
+Parameter | +Description | +
---|---|
|
+조회하고자 하는 연도(2015 이상의 값) |
+
|
+조회하고자 하는 월(1~12) |
+
|
+필터링하려는 태그(option) |
+
|
+필터링하려는 상태(option) |
+
HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 814
+
+[ {
+ "id" : 1,
+ "name" : "인프콘 2023",
+ "startDate" : "2023:06:03:12:00:00",
+ "endDate" : "2023:09:03:12:00:00",
+ "tags" : [ "백엔드", "프론트엔드", "안드로이드", "IOS", "AI" ],
+ "status" : "진행 중"
+}, {
+ "id" : 5,
+ "name" : "웹 컨퍼런스",
+ "startDate" : "2023:07:03:12:00:00",
+ "endDate" : "2023:08:03:12:00:00",
+ "tags" : [ "백엔드", "프론트엔드" ],
+ "status" : "진행 중"
+}, {
+ "id" : 2,
+ "name" : "AI 컨퍼런스",
+ "startDate" : "2023:07:22:12:00:00",
+ "endDate" : "2023:07:30:12:00:00",
+ "tags" : [ "AI" ],
+ "status" : "진행 예정"
+}, {
+ "id" : 4,
+ "name" : "안드로이드 컨퍼런스",
+ "startDate" : "2023:06:29:12:00:00",
+ "endDate" : "2023:07:16:12:00:00",
+ "tags" : [ "백엔드", "프론트엔드" ],
+ "status" : "종료된 행사"
+} ]
+Path | +Type | +Description | +
---|---|---|
|
+
|
+행사 id |
+
|
+
|
+행사명 |
+
|
+
|
+행사 시작일(yyyy:MM:dd:HH:mm:ss) |
+
|
+
|
+행사 종료일(yyyy:MM:dd:HH:mm:ss) |
+
|
+
|
+행사 태그 목록 |
+
|
+
|
+행사 진행 상황 |
+
GET
: 댓글 모두 조회Parameter | +Description | +
---|---|
|
+댓글을 볼 행사 id |
+
GET /comments?eventId=1 HTTP/1.1
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 1313
+
+[ {
+ "parentComment" : {
+ "content" : "부모댓글2",
+ "commentId" : 4,
+ "parentId" : null,
+ "eventId" : 1,
+ "createdAt" : "2023:07:28:15:35:17",
+ "updatedAt" : "2023:07:28:15:35:17",
+ "memberId" : 1,
+ "memberImageUrl" : "이미지",
+ "memberName" : "이름1",
+ "deleted" : false
+ },
+ "childComments" : [ ]
+}, {
+ "parentComment" : {
+ "content" : "부모댓글1",
+ "commentId" : 5,
+ "parentId" : null,
+ "eventId" : 1,
+ "createdAt" : "2023:07:28:15:35:17",
+ "updatedAt" : "2023:07:28:15:35:17",
+ "memberId" : 1,
+ "memberImageUrl" : "이미지",
+ "memberName" : "이름1",
+ "deleted" : false
+ },
+ "childComments" : [ {
+ "content" : "부모댓글1에 대한 자식댓글1",
+ "commentId" : 2,
+ "parentId" : 1,
+ "eventId" : 1,
+ "createdAt" : "2023:07:28:15:35:17",
+ "updatedAt" : "2023:07:28:15:35:17",
+ "memberId" : 1,
+ "memberImageUrl" : "이미지",
+ "memberName" : "이름1",
+ "deleted" : false
+ }, {
+ "content" : "부모댓글1에 대한 자식댓글2",
+ "commentId" : 3,
+ "parentId" : 1,
+ "eventId" : 1,
+ "createdAt" : "2023:07:28:15:35:17",
+ "updatedAt" : "2023:07:28:15:35:17",
+ "memberId" : 1,
+ "memberImageUrl" : "이미지",
+ "memberName" : "이름1",
+ "deleted" : false
+ } ]
+} ]
Path | +Type | +Description | +
---|---|---|
|
+
|
+댓글 내용 |
+
|
+
|
+댓글 ID |
+
|
+
|
+부모 댓글 ID |
+
|
+
|
+이벤트 ID |
+
|
+
|
+댓글 삭제 여부 |
+
|
+
|
+댓글 생성 날짜 |
+
|
+
|
+댓글 수정 날짜 |
+
|
+
|
+댓글 작성자 ID |
+
|
+
|
+댓글 작성자 이미지 Url |
+
|
+
|
+댓글 작성자 이름 |
+
|
+
|
+자식 댓글 목록 |
+
|
+
|
+댓글 내용 |
+
|
+
|
+댓글 ID |
+
|
+
|
+부모 댓글 ID |
+
|
+
|
+이벤트 ID |
+
|
+
|
+댓글 삭제 여부 |
+
|
+
|
+댓글 생성 날짜 |
+
|
+
|
+댓글 수정 날짜 |
+
|
+
|
+댓글 작성자 ID |
+
|
+
|
+댓글 작성자 이미지 Url |
+
|
+
|
+댓글 작성자 이름 |
+
POST
: 댓글 및 대댓글 생성POST /comments HTTP/1.1
+Content-Type: application/json
+Content-Length: 64
+Host: localhost:8080
+
+{
+ "content" : "내용",
+ "eventId" : 1,
+ "parentId" : null
+}
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 259
+
+{
+ "content" : "내용",
+ "commentId" : 2,
+ "parentId" : 1,
+ "eventId" : 1,
+ "createdAt" : "2023:07:28:15:35:17",
+ "updatedAt" : "2023:07:28:15:35:17",
+ "memberId" : 1,
+ "memberImageUrl" : "이미지",
+ "memberName" : "이름1",
+ "deleted" : false
+}
+Path | +Type | +Description | +
---|---|---|
|
+
|
+저장된 댓글 내용 |
+
|
+
|
+저장된 댓글 id |
+
|
+
|
+대댓글일 경우 부모 댓글 id |
+
|
+
|
+행사 id |
+
|
+
|
+댓글 생성 시간 |
+
|
+
|
+댓글 최근 수정 시간 |
+
|
+
|
+댓글 삭제 여부 |
+
|
+
|
+댓글 작성자 ID |
+
|
+
|
+댓글 작성자 이미지 Url |
+
|
+
|
+댓글 작성자 이름 |
+
DELETE
: 댓글 삭제DELETE /comments/1 HTTP/1.1
+Host: localhost:8080
+Parameter | +Description | +
---|---|
|
+삭제할 댓글의 ID |
+
HTTP/1.1 204 No Content
+PATCH
: 댓글 수정PATCH /comments/1 HTTP/1.1
+Content-Type: application/json
+Content-Length: 36
+Host: localhost:8080
+
+{
+ "content" : "변경된 내용"
+}
+Path | +Type | +Description | +
---|---|---|
|
+
|
+변경할 댓글 내용 |
+
Parameter | +Description | +
---|---|
|
+수정할 댓글의 ID |
+
HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 259
+
+{
+ "content" : "댓",
+ "commentId" : 5,
+ "parentId" : null,
+ "eventId" : 1,
+ "createdAt" : "2023:07:28:15:35:17",
+ "updatedAt" : "2023:07:28:15:35:17",
+ "memberId" : 1,
+ "memberImageUrl" : "이미지",
+ "memberName" : "이름1",
+ "deleted" : false
+}
+Path | +Type | +Description | +
---|---|---|
|
+
|
+저장된 댓글 내용 |
+
|
+
|
+저장된 댓글 id |
+
|
+
|
+대댓글일 경우 부모 댓글 id |
+
|
+
|
+행사 id |
+
|
+
|
+댓글 생성 시간 |
+
|
+
|
+댓글 최근 수정 시간 |
+
|
+
|
+댓글 삭제 여부 |
+
|
+
|
+댓글 작성자 ID |
+
|
+
|
+댓글 작성자 이미지 Url |
+
|
+
|
+댓글 작성자 이름 |
+
POST
: 로그인 및 가입POST /login/github/callback HTTP/1.1
+Host: localhost:8080
+Content-Type: application/x-www-form-urlencoded
+
+code=code
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 77
+
+{
+ "memberId" : 1,
+ "accessToken" : "access_token",
+ "newMember" : false
+}
+Path | +Type | +Description | +
---|---|---|
|
+
|
+멤버 id |
+
|
+
|
+새로운 사용자 여부 |
+
|
+
|
+Access Token 값 |
+