-
Notifications
You must be signed in to change notification settings - Fork 4
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 #5 from paengdal/express-조형민-sprint7
[조형민] sprint7
- Loading branch information
Showing
23 changed files
with
2,274 additions
and
531 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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
DATABASE_URL="mongodb+srv://paengdal:[email protected]/panda-market?retryWrites=true&w=majority&appName=Cluster0" | ||
# BACKEND_API_URL="https://four-sprint-mission-fe-1.onrender.com" | ||
PORT=5500 | ||
DATABASE_URL="postgresql://hyungmincho:112211@localhost:5432/panda?schema=public" | ||
PORT=3000 |
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 |
---|---|---|
|
@@ -22,3 +22,4 @@ npm-debug.log* | |
yarn-debug.log* | ||
yarn-error.log* | ||
node_modules | ||
.env |
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 @@ | ||
16.20.2 |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
## 조형민의 판다마켓 스프린트 미션 백엔드 제출 공간입니다. 😁 | ||
|
||
**스프린트 미션 6** | ||
**스프린트 미션 7** |
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,33 @@ | ||
### | ||
POST http://localhost:3000/articles | ||
Content-Type: application/json | ||
|
||
{ | ||
"title":"갤럭시 S40", | ||
"content":"쌈송에서 만든 최신 폰" | ||
} | ||
|
||
### | ||
PATCH http://localhost:3000/articles/0456b46f-7a18-4211-b7a1-2216f84cc2cb | ||
Content-Type: application/json | ||
|
||
{ | ||
"content":"쌈송에서 만든 망폰" | ||
} | ||
|
||
### | ||
GET http://localhost:3000/articles/0456b46f-7a18-4211-b7a1-2216f84cc2cb | ||
|
||
### | ||
GET http://localhost:3000/articles | ||
|
||
### | ||
POST http://localhost:3000/articles/0456b46f-7a18-4211-b7a1-2216f84cc2cb/comments | ||
Content-Type: application/json | ||
|
||
{ | ||
"content" : "이건 삭제할 댓글입니다." | ||
} | ||
|
||
### | ||
DELETE http://localhost:3000/comments/cdd15137-d60a-4f58-8b71-398d802cdaa7 |
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,16 @@ | ||
|
||
PATCH http://localhost:3000/comments/492cc17e-ae41-4156-9a33-748f76adb7c4 | ||
Content-Type: application/json | ||
|
||
{ | ||
"content":"댓글 수정 테스트" | ||
} | ||
|
||
### | ||
GET http://localhost:3000/products/comments | ||
|
||
### | ||
GET http://localhost:3000/products/comments?limit=3&cursor=8cbf2c41-8974-412e-8d43-98d4020a7217 | ||
|
||
### | ||
GET http://localhost:3000/ariticles/comments |
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,41 @@ | ||
GET http://localhost:3000/products | ||
|
||
### | ||
GET http://localhost:3000/products?sort=recent&keyword=갤럭시 | ||
|
||
### | ||
GET http://localhost:3000/products/10f12b65-20f5-43d9-860e-faf4890e2a9e | ||
|
||
### | ||
POST http://localhost:3000/products | ||
Content-Type: application/json | ||
|
||
{ | ||
"name":"갤럭시 S40", | ||
"description":"쌈송에서 만든 최신 폰", | ||
"price":990000, | ||
"tags":["갤럭시", "삼성"] | ||
} | ||
|
||
### | ||
PATCH http://localhost:3000/products/0486722d-02f8-4a40-bdb0-0bfb2dfaeb70 | ||
Content-Type: application/json | ||
|
||
{ | ||
"name":"갤럭시 S50", | ||
"price":5400 | ||
} | ||
|
||
### | ||
DELETE http://localhost:3000/products/b833f160-3ae9-4c23-94c5-f44fcdc73ccc | ||
|
||
### | ||
|
||
POST http://localhost:3000/products/10f12b65-20f5-43d9-860e-faf4890e2a9e/comments | ||
Content-Type: application/json | ||
|
||
{ | ||
"content" : "이게 가장 새로운 댓글" | ||
} | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.