HTTP 동사
+본 REST API에서 사용하는 HTTP 동사(verbs)는 가능한한 표준 HTTP와 REST 규약을 따릅니다.
+| 동사 | +용례 | +
|---|---|
|
+리소스를 가져올 때 사용 |
+
|
+새 리소스를 만들 때 사용 |
+
|
+기존 리소스를 수정할 때 사용 |
+
|
+기존 리소스의 일부를 수정할 때 사용 |
+
|
+기존 리소스를 삭제할 떄 사용 |
+
HTTP 상태 코드
+본 REST API에서 사용하는 HTTP 상태 코드는 가능한 표준 HTTP와 REST 규약을 따릅니다.
+| 상태 코드 | +용례 | +
|---|---|
|
+요청을 성공적으로 처리함 |
+
|
+새 리소스를 성공적으로 생성함. 응답의 |
+
|
+기존 리소스를 성공적으로 수정함. |
+
|
+잘못된 요청을 보낸 경우. 응답 본문에 더 오류에 대한 정보가 담겨있다. |
+
|
+요청한 리소스가 없음. |
+
|
+클라이언트의 요청이 서버의 상태와 충돌이 발생한 경우. |
+
알림
+알림 조회 - 회원 고유번호
+Curl request
+$ curl 'http://https://just-pickup.com:8000/notifications' -i -X GET \
+ -H 'user-id: 1'
+HTTP request
+GET //just-pickup.com:8000/notifications HTTP/1.1
+user-id: 1
+Host: https
+HTTP response
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 1693
+
+{
+ "code" : "SUCCESS",
+ "message" : "",
+ "data" : {
+ "notifications" : [ {
+ "id" : 1,
+ "message" : "1번 메시지 예시입니다.",
+ "title" : "제목1",
+ "read" : true,
+ "time" : "2022-03-25 17:56"
+ }, {
+ "id" : 2,
+ "message" : "2번 메시지 예시입니다.",
+ "title" : "제목2",
+ "read" : true,
+ "time" : "2022-03-25 17:56"
+ }, {
+ "id" : 3,
+ "message" : "3번 메시지 예시입니다.",
+ "title" : "제목3",
+ "read" : true,
+ "time" : "2022-03-25 17:56"
+ }, {
+ "id" : 4,
+ "message" : "4번 메시지 예시입니다.",
+ "title" : "제목4",
+ "read" : true,
+ "time" : "2022-03-25 17:56"
+ }, {
+ "id" : 5,
+ "message" : "5번 메시지 예시입니다.",
+ "title" : "제목5",
+ "read" : true,
+ "time" : "2022-03-25 17:56"
+ }, {
+ "id" : 6,
+ "message" : "6번 메시지 예시입니다.",
+ "title" : "제목6",
+ "read" : false,
+ "time" : "2022-03-25 17:56"
+ }, {
+ "id" : 7,
+ "message" : "7번 메시지 예시입니다.",
+ "title" : "제목7",
+ "read" : false,
+ "time" : "2022-03-25 17:56"
+ }, {
+ "id" : 8,
+ "message" : "8번 메시지 예시입니다.",
+ "title" : "제목8",
+ "read" : false,
+ "time" : "2022-03-25 17:56"
+ }, {
+ "id" : 9,
+ "message" : "9번 메시지 예시입니다.",
+ "title" : "제목9",
+ "read" : false,
+ "time" : "2022-03-25 17:56"
+ }, {
+ "id" : 10,
+ "message" : "10번 메시지 예시입니다.",
+ "title" : "제목10",
+ "read" : false,
+ "time" : "2022-03-25 17:56"
+ } ]
+ }
+}
+Request headers
+| Name | +Description | +
|---|---|
|
+회원 고유번호 |
+
Response fields
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+결과코드 SUCCESS/ERROR |
+
|
+
|
+메시지 |
+
|
+
|
+알림 고유번호 |
+
|
+
|
+알림 내용 |
+
|
+
|
+알림 제목 |
+
|
+
|
+알림 읽음 여부 |
+
|
+
|
+알림 생성 시간 [YYYY-MM-DD HH:MM] |
+
알림 수정
+Curl request
+$ curl 'http://https://just-pickup.com:8000/notification/1' -i -X PATCH \
+ -H 'Content-Type: application/json;charset=UTF-8' \
+ -H 'Accept: application/json' \
+ -d '{
+ "read" : true
+}'
+HTTP request
+PATCH //just-pickup.com:8000/notification/1 HTTP/1.1
+Content-Type: application/json;charset=UTF-8
+Accept: application/json
+Content-Length: 19
+Host: https
+
+{
+ "read" : true
+}
+HTTP response
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 59
+
+{
+ "code" : "SUCCESS",
+ "message" : "",
+ "data" : null
+}
+Path parameters
+| Parameter | +Description | +
|---|---|
|
+알림 고유번호 |
+
Request fields
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+읽음 여부 |
+
Response fields
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+결과코드 SUCCESS/ERROR |
+
|
+
|
+메시지 |
+
|
+
|
+데이터 |
+
API
+읽지 않은 알림 개수 조회
+Curl request
+$ curl 'http://https://just-pickup.com:8000/api/notification/counts' -i -X GET \
+ -H 'user-id: 1'
+HTTP request
+GET //just-pickup.com:8000/api/notification/counts HTTP/1.1
+user-id: 1
+Host: https
+HTTP response
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 57
+
+{
+ "code" : "SUCCESS",
+ "message" : "",
+ "data" : 10
+}
+Request headers
+| Name | +Description | +
|---|---|
|
+회원 고유번호 |
+
Response fields
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+결과코드 SUCCESS/ERROR |
+
|
+
|
+메시지 |
+
|
+
|
+알림 개수 |
+
]({{ site.baseurl }}/)
diff --git a/docs/CNAME b/docs/CNAME
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/docs/CNAME
@@ -0,0 +1 @@
+
diff --git a/docs/LICENSE b/docs/LICENSE
new file mode 100644
index 0000000..40e6030
--- /dev/null
+++ b/docs/LICENSE
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Barry Clark
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/docs/README.md b/docs/README.md
new file mode 100644
index 0000000..4f569bd
--- /dev/null
+++ b/docs/README.md
@@ -0,0 +1,5 @@
+
+# Just Pickup static page
+https://development-team-1.github.io/just-pickup/
+
+
\ No newline at end of file
diff --git a/docs/_config.yml b/docs/_config.yml
new file mode 100644
index 0000000..a4281a3
--- /dev/null
+++ b/docs/_config.yml
@@ -0,0 +1,86 @@
+#
+# This file contains configuration flags to customize your site
+#
+
+# Name of your site (displayed in the header)
+name: Development-team-1
+
+# Short bio or description (displayed in the header)
+description: 커피픽업 서비스
+
+# URL of your avatar or profile pic (you could use your GitHub profile pic)
+avatar: https://avatars.githubusercontent.com/u/98140851?s=400&u=7c77c68cb94efc83399176cd1347eb9df6497026&v=4
+
+#
+# Flags below are optional
+#
+
+# Includes an icon in the footer for each username you enter
+footer-links:
+ dribbble:
+ email:
+ facebook:
+ flickr:
+ github: Development-team-1/just-pickup
+ instagram:
+ linkedin:
+ pinterest:
+ rss: # just type anything here for a working RSS icon
+ twitter:
+ stackoverflow: # your stackoverflow profile, e.g. "users/50476/bart-kiers"
+ youtube: # channel/