name |
method |
url |
description |
๊ฟ ๋ชฉ๋ก ์กฐํ |
GET |
/dreams |
์์ฒญํ ์ ์ ์์ ์ ๋ชจ๋ ๊ฟ ๋ชฉ๋ก์ ์กฐํ(์งํ์ค์ธ ๊ฒ) |
Header
Header Name |
Required |
Default Value |
Description |
Authorization |
true |
- |
๋ก๊ทธ์ธ/ํ์๊ฐ์
์ ํตํด ์ป์ ํ ํฐ๊ฐ (token <token> ) |
Name |
Data Type |
Number |
Description |
dreams |
Dream |
N |
๊ฟ์ ๋ํ ์ ๋ณด |
{
"dreams": [
{
"user": {
"nickname": "test",
"email": "[email protected]"
},
"id": 2,
"title": "second test",
"description": "hello, this is test description",
"start_at": "2019-12-22",
"complete_by": "2020-12-22",
"tag": 1,
"created_at": "2019-12-29T01:39:50.308594+09:00",
"updated_at": "2019-12-29T01:40:16.151289+09:00",
"is_completed": false
},
{
"user": {
"nickname": "test",
"email": "[email protected]"
},
"id": 1,
"title": "first test",
"description": "hello, this is test description",
"start_at": "2019-12-22",
"complete_by": "2020-12-22",
"tag": 0,
"created_at": "2019-12-29T01:38:43.972922+09:00",
"updated_at": "2019-12-29T01:38:43.973211+09:00",
"is_completed": false
}
]
}
name |
method |
url |
description |
์ง๋ ๊ฟ ๋ชฉ๋ก ์กฐํ |
GET |
/dreams/history |
์์ฒญํ ์ ์ ์์ ์ ์ง๋ ๋ชจ๋ ๊ฟ ๋ชฉ๋ก์ ์กฐํ |
Header
Header Name |
Required |
Default Value |
Description |
Authorization |
true |
- |
๋ก๊ทธ์ธ/ํ์๊ฐ์
์ ํตํด ์ป์ ํ ํฐ๊ฐ (token <token> ) |
Name |
Data Type |
Number |
Description |
dreams |
Dream |
N |
๊ฟ์ ๋ํ ์ ๋ณด |
{
"dreams": [
{
"user": {
"nickname": "test",
"email": "[email protected]"
},
"id": 2,
"title": "DREAM2 TITLE CHANG?E",
"description": "hello, this is test description",
"start_at": "2019-12-22",
"complete_by": "2020-12-22",
"tag": 1,
"created_at": "2019-12-29T01:39:50.308594+09:00",
"updated_at": "2019-12-29T01:40:16.151289+09:00",
"is_completed": true
}
]
}
name |
method |
url |
description |
๋จ์ผ ๊ฟ ์กฐํ |
GET |
/dreams/{dreamId} |
๋จ์ผ ๊ฟ์ ๋ํ ์์ธ์ ๋ณด ์กฐํ |
Header
Header Name |
Required |
Default Value |
Description |
Authorization |
true |
- |
๋ก๊ทธ์ธ/ํ์๊ฐ์
์ ํตํด ์ป์ ํ ํฐ๊ฐ (token <token> ) |
Name |
Data Type |
Number |
Description |
user |
User |
1 |
๊ฟ ์์ฑ์ ์ ๋ณด |
id |
Integer |
1 |
๊ฟ ID |
description |
String |
1 |
๊ฟ ์์ธ ์ค๋ช
|
start_at |
String |
1 |
์์์ผ |
complete_by |
String |
1 |
๋ชฉํ ์ข
๋ฃ์ผ |
tag |
Integer |
1 |
ํ๊ทธ ๋ฒํธ |
created_at |
String |
1 |
๊ฟ ์์ฑ์ผ |
updated_at |
String |
1 |
๊ฟ ์ต์ข
์์ ์ผ |
is_completed |
Boolean |
1 |
๊ฟ ๋ฌ์ฑ ์ฌ๋ถ |
complete_at |
String |
0...1 |
(์๋ฃ๋ ๊ฟ์ผ ๊ฒฝ์ฐ) ๋ฌ์ฑ ์ผ์ |
review |
String |
0...1 |
(์๋ฃ๋ ๊ฟ์ผ ๊ฒฝ์ฐ) ํ๊ธฐ |
photo |
String |
0...1 |
(์๋ฃ๋ ๊ฟ์ผ ๊ฒฝ์ฐ) ์ฌ์ง url |
{
"user": {
"nickname": "test",
"email": "[email protected]"
},
"id": 2,
"title": "DREAM2 TITLE CHANG?E",
"description": "hello, this is test description",
"start_at": "2019-12-22",
"complete_by": "2020-12-22",
"tag": 1,
"created_at": "2019-12-29T02:18:14.266897+09:00",
"updated_at": "2019-12-29T02:18:14.267308+09:00",
"is_completed": true,
"complete_at": "2019-12-22",
"review": "Second dream is completed",
"photo": ""
}
name |
method |
url |
description |
๊ฟ ์ถ๊ฐ |
POST |
/dreams |
์๋ก์ด ๊ฟ์ ์ถ๊ฐ |
Header
Header Name |
Required |
Default Value |
Description |
Authorization |
true |
- |
๋ก๊ทธ์ธ/ํ์๊ฐ์
์ ํตํด ์ป์ ํ ํฐ๊ฐ (token <token> ) |
Name |
Data Type |
Required |
Default Value |
Description |
title |
String |
true |
- |
๊ฟ์ ์ ๋ชฉ |
description |
String |
false |
- |
๊ฟ์ ๋ํ ์์ธํ ์ค๋ช
, ๋ชฉํ ๋ฑ |
start_at |
Date |
false |
์ค๋ ๋ ์ง |
๊ฟ ๋ฌ์ฑ์ ์์ํ ๋ ์ |
complete_by |
Date |
false |
- |
๊ฟ์ ์๋ฃํ ๊ธฐํ |
tag |
Integer |
true |
- |
๊ฟ์ด ์ํ ํ๊ทธ ๋ฒํธ |
{
"title": "second test",
"description": "hello, this is test description",
"start_at": "2019-12-22",
"complete_by": "2020-12-22",
"tag": 1
}
Name |
Data Type |
Number |
Description |
user |
User |
1 |
๊ฟ ์์ฑ์ ์ ๋ณด |
id |
Integer |
1 |
๊ฟ ID |
description |
String |
1 |
๊ฟ ์์ธ ์ค๋ช
|
start_at |
String |
1 |
์์์ผ |
complete_by |
String |
1 |
๋ชฉํ ์ข
๋ฃ์ผ |
tag |
Integer |
1 |
ํ๊ทธ ๋ฒํธ |
created_at |
String |
1 |
๊ฟ ์์ฑ์ผ |
updated_at |
String |
1 |
๊ฟ ์ต์ข
์์ ์ผ |
is_completed |
Boolean |
1 |
๊ฟ ๋ฌ์ฑ ์ฌ๋ถ |
{
"user": {
"nickname": "test",
"email": "[email protected]"
},
"id": 2,
"title": "second test",
"description": "hello, this is test description",
"start_at": "2019-12-22",
"complete_by": "2020-12-22",
"tag": 1,
"created_at": "2019-12-29T01:39:50.308594+09:00",
"updated_at": "2019-12-29T01:39:50.308929+09:00",
"is_completed": false
}
name |
method |
url |
description |
๊ฟ ์์ |
PATCH |
/dreams/{dreamId} |
๊ธฐ์กด์ ๊ฟ ์์ |
Header
Header Name |
Required |
Default Value |
Description |
Authorization |
true |
- |
๋ก๊ทธ์ธ/ํ์๊ฐ์
์ ํตํด ์ป์ ํ ํฐ๊ฐ (token <token> ) |
Name |
Data Type |
Required |
Default Value |
Description |
title |
String |
false |
- |
๊ฟ์ ์ ๋ชฉ |
description |
String |
false |
- |
๊ฟ์ ๋ํ ์์ธํ ์ค๋ช
, ๋ชฉํ ๋ฑ |
start_at |
Date |
false |
- |
๊ฟ ๋ฌ์ฑ์ ์์ํ ๋ ์ |
complete_by |
Date |
false |
- |
๊ฟ์ ์๋ฃํ ๊ธฐํ |
tag |
String |
false |
- |
๊ฟ์ด ์ํ ํ๊ทธ |
{
"title": "DREAM2 TITLE CHANG?E"
}
Name |
Data Type |
Number |
Description |
user |
User |
1 |
๊ฟ ์์ฑ์ ์ ๋ณด |
id |
Integer |
1 |
๊ฟ ID |
description |
String |
1 |
๊ฟ ์์ธ ์ค๋ช
|
start_at |
String |
1 |
์์์ผ |
complete_by |
String |
1 |
๋ชฉํ ์ข
๋ฃ์ผ |
tag |
Integer |
1 |
ํ๊ทธ ๋ฒํธ |
created_at |
String |
1 |
๊ฟ ์์ฑ์ผ |
updated_at |
String |
1 |
๊ฟ ์ต์ข
์์ ์ผ |
is_completed |
Boolean |
1 |
๊ฟ ๋ฌ์ฑ ์ฌ๋ถ |
{
"user": {
"nickname": "test",
"email": "[email protected]"
},
"id": 2,
"title": "DREAM2 TITLE CHANG?E",
"description": "hello, this is test description",
"start_at": "2019-12-22",
"complete_by": "2020-12-22",
"tag": 1,
"created_at": "2019-12-29T01:39:50.308594+09:00",
"updated_at": "2019-12-29T01:40:16.151289+09:00",
"is_completed": false
}
name |
method |
url |
description |
๊ฟ ์ญ์ |
DELETE |
/dreams/{dreamId} |
๋จ์ผ ๊ฟ ์ญ์ |
Header
Header Name |
Required |
Default Value |
Description |
Authorization |
true |
- |
๋ก๊ทธ์ธ/ํ์๊ฐ์
์ ํตํด ์ป์ ํ ํฐ๊ฐ (token <token> ) |
Body ์์(์ฑ๊ณต์ 204 No Content
)
name |
method |
url |
description |
๊ฟ ๊ฒฐ๊ณผ ์ถ๊ฐ |
POST |
/dreams/{dreamId}/result |
๊ฟ ๋ฌ์ฑ์ ์์ธ ์ ๋ณด ๊ธฐ๋ก |
Header
Header Name |
Required |
Default Value |
Description |
Authorization |
true |
- |
๋ก๊ทธ์ธ/ํ์๊ฐ์
์ ํตํด ์ป์ ํ ํฐ๊ฐ (token <token> ) |
Name |
Data Type |
Required |
Default Value |
Description |
complete_at |
Date |
true |
- |
๊ฟ์ ๋ฌ์ฑ ์ผ์ |
review |
String |
true |
- |
๊ฟ ๋ฌ์ฑ์ ๋ํ ์์ธ ํ๊ธฐ, ๋ฌ์ฑ ๋ด์ฉ, ๋ฐฉ์ ๋ฑ |
photo |
Date |
false |
- |
๊ด๋ จ ์ฌ์ง (ํ์ฌ ์ฌ์ฉํ์ง ์๋ ๊ธฐ๋ฅ...ใ
ใ
์ถํ ์ฌ์ง ์
๋ก๋ ๊ตฌํ ์์ ) |
{
"complete_at": "2019-12-29",
"review": "First dream is completed"
}
Name |
Data Type |
Number |
Description |
user |
User |
1 |
๊ฟ ์์ฑ์ ์ ๋ณด |
id |
Integer |
1 |
๊ฟ ID |
description |
String |
1 |
๊ฟ ์์ธ ์ค๋ช
|
start_at |
String |
1 |
์์์ผ |
complete_by |
String |
1 |
๋ชฉํ ์ข
๋ฃ์ผ |
tag |
Integer |
1 |
ํ๊ทธ ๋ฒํธ |
created_at |
String |
1 |
๊ฟ ์์ฑ์ผ |
updated_at |
String |
1 |
๊ฟ ์ต์ข
์์ ์ผ |
is_completed |
Boolean |
1 |
๊ฟ ๋ฌ์ฑ ์ฌ๋ถ |
complete_at |
String |
1 |
๋ฌ์ฑ ์ผ์ |
review |
String |
1 |
ํ๊ธฐ |
photo |
String |
1 |
์ฌ์ง url |
{
"user": {
"nickname": "test",
"email": "[email protected]"
},
"id": 1,
"title": "first test",
"description": "hello, this is test description",
"start_at": "2019-12-22",
"complete_by": "2020-12-22",
"tag": 0,
"created_at": "2019-12-29T02:35:48.445150+09:00",
"updated_at": "2019-12-29T02:35:48.445391+09:00",
"is_completed": true,
"complete_at": "2019-12-29",
"review": "First dream is completed",
"photo": ""
}
name |
method |
url |
description |
๊ฟ ๊ฒฐ๊ณผ ์ถ๊ฐ |
PATCH |
/dreams/{dreamId}/result |
๊ฟ ๋ฌ์ฑ ๊ฒฐ๊ณผ ์์ |
Header
Header Name |
Required |
Default Value |
Description |
Authorization |
true |
- |
๋ก๊ทธ์ธ/ํ์๊ฐ์
์ ํตํด ์ป์ ํ ํฐ๊ฐ (token <token> ) |
Name |
Data Type |
Required |
Default Value |
Description |
complete_at |
Date |
false |
- |
๊ฟ์ ๋ฌ์ฑ ์ผ์ |
review |
String |
false |
- |
๊ฟ ๋ฌ์ฑ์ ๋ํ ์์ธ ํ๊ธฐ, ๋ฌ์ฑ ๋ด์ฉ, ๋ฐฉ์ ๋ฑ |
photo |
Date |
false |
- |
๊ด๋ จ ์ฌ์ง (ํ์ฌ ์ฌ์ฉํ์ง ์๋ ๊ธฐ๋ฅ...ใ
ใ
์ถํ ์ฌ์ง ์
๋ก๋ ๊ตฌํ ์์ ) |
{
"review": "First dream is completed!!!! contents changed."
}
Name |
Data Type |
Number |
Description |
user |
User |
1 |
๊ฟ ์์ฑ์ ์ ๋ณด |
id |
Integer |
1 |
๊ฟ ID |
description |
String |
1 |
๊ฟ ์์ธ ์ค๋ช
|
start_at |
String |
1 |
์์์ผ |
complete_by |
String |
1 |
๋ชฉํ ์ข
๋ฃ์ผ |
tag |
Integer |
1 |
ํ๊ทธ ๋ฒํธ |
created_at |
String |
1 |
๊ฟ ์์ฑ์ผ |
updated_at |
String |
1 |
๊ฟ ์ต์ข
์์ ์ผ |
is_completed |
Boolean |
1 |
๊ฟ ๋ฌ์ฑ ์ฌ๋ถ |
complete_at |
String |
1 |
๋ฌ์ฑ ์ผ์ |
review |
String |
1 |
ํ๊ธฐ |
photo |
String |
1 |
์ฌ์ง url |
{
"user": {
"nickname": "test",
"email": "[email protected]"
},
"id": 1,
"title": "first test",
"description": "hello, this is test description",
"start_at": "2019-12-22",
"complete_by": "2020-12-22",
"tag": 0,
"created_at": "2019-12-29T02:35:48.445150+09:00",
"updated_at": "2019-12-29T02:35:48.445391+09:00",
"is_completed": true,
"complete_at": "2019-12-29",
"review": "First dream is completed!!!! contents changed.",
"photo": ""
}