-
Notifications
You must be signed in to change notification settings - Fork 0
1.3) Notice Request Sample
Jong1 edited this page Nov 4, 2023
·
1 revision
Warning
모든 Request, Response가 존재하지 않을 수 있습니다
curl --location 'http://localhost:8080/notice?page=0&articleLimit=5' \
--header 'language: KO'
[
{
"createAt": "2023-12-12 01:00:00",
"updateAt": "2023-12-13 01:00:00",
"id": 50,
"language": "KO",
"status": "PUBLIC",
"createdUser": {
"createAt": "2023-10-18 01:10:29",
"updateAt": "2023-10-18 01:10:29",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"updatedUser": {
"createAt": "2023-10-18 01:10:29",
"updateAt": "2023-10-18 01:10:29",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"content": null,
"title": "title50"
},
{
"createAt": "2023-12-10 01:00:00",
"updateAt": "2023-12-11 01:00:00",
"id": 49,
"language": "KO",
"status": "PUBLIC",
"createdUser": {
"createAt": "2023-10-18 01:10:29",
"updateAt": "2023-10-18 01:10:29",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"updatedUser": {
"createAt": "2023-10-18 01:10:29",
"updateAt": "2023-10-18 01:10:29",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"content": null,
"title": "title49"
},
{
"createAt": "2023-12-08 01:00:00",
"updateAt": "2023-12-09 01:00:00",
"id": 48,
"language": "KO",
"status": "PUBLIC",
"createdUser": {
"createAt": "2023-10-18 01:10:29",
"updateAt": "2023-10-18 01:10:29",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"updatedUser": {
"createAt": "2023-10-18 01:10:29",
"updateAt": "2023-10-18 01:10:29",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"content": null,
"title": "title48"
},
{
"createAt": "2023-12-06 01:00:00",
"updateAt": "2023-12-07 01:00:00",
"id": 47,
"language": "KO",
"status": "PUBLIC",
"createdUser": {
"createAt": "2023-10-18 01:10:29",
"updateAt": "2023-10-18 01:10:29",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"updatedUser": {
"createAt": "2023-10-18 01:10:29",
"updateAt": "2023-10-18 01:10:29",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"content": null,
"title": "title47"
},
{
"createAt": "2023-12-04 01:00:00",
"updateAt": "2023-12-05 01:00:00",
"id": 46,
"language": "KO",
"status": "PUBLIC",
"createdUser": {
"createAt": "2023-10-18 01:10:29",
"updateAt": "2023-10-18 01:10:29",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"updatedUser": {
"createAt": "2023-10-18 01:10:29",
"updateAt": "2023-10-18 01:10:29",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"content": null,
"title": "title46"
}
]
curl --location 'http://localhost:8080/notice/1' \
--header 'language: KO'
{
"createAt": "2023-09-20 01:00:00",
"updateAt": "2023-09-21 01:00:00",
"id": 1,
"language": "KO",
"status": "PUBLIC",
"createdUser": {
"createAt": "2023-10-18 01:10:29",
"updateAt": "2023-10-18 01:10:29",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"updatedUser": {
"createAt": "2023-10-18 01:10:29",
"updateAt": "2023-10-18 01:10:29",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"content": "content1",
"title": "title1"
}
Warning
해당 기능은 관리자 사용자의 JWT토큰이 필수입니다.
curl --location 'http://localhost:8080/notice' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiaWF0IjoxNjk3NTMzMjc2LCJleHAiOjE2OTc1NjkyNzYsImlzcyI6Imhvb2traWxsZXIiLCJ0eXBlIjoiQUNDRVNTX1RPS0VOIiwicm9sZSI6IkFETUlOIn0.ys5w2OBBcScP-yWnHn9-_RDgHlvCuQU5Apkp9gK9J0YfZG2Ckueg4B-4Q5xOQTu3-hjOVtQSHgtCw-54-CU5Rg' \
--header 'Content-Type: application/json' \
--data '{
"language" : "KO",
"title" : "응애응애",
"content" : "<div>응애응애응애 너무 일이 많아요</div>"
}'
Warning
해당 기능은 관리자 사용자의 JWT토큰이 필수입니다.
curl --location --request PUT 'http://localhost:8080/notice' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiaWF0IjoxNjk3NTMzMjc2LCJleHAiOjE2OTc1NjkyNzYsImlzcyI6Imhvb2traWxsZXIiLCJ0eXBlIjoiQUNDRVNTX1RPS0VOIiwicm9sZSI6IkFETUlOIn0.ys5w2OBBcScP-yWnHn9-_RDgHlvCuQU5Apkp9gK9J0YfZG2Ckueg4B-4Q5xOQTu3-hjOVtQSHgtCw-54-CU5Rg' \
--header 'Content-Type: application/json' \
--data '{
"noticeArticleId" : 51,
"language" : "KO",
"orgTitle" : "응애응애",
"newTitle" : "일이 너무 많다고요 ㅠㅠ",
"orgContent" : "<div>응애응애응애 너무 일이 많아요</div>",
"newContent" : "<div>제발 엘라스틱서치 쓸수 있게 해주세요</div>"
}'
Warning
해당 기능은 관리자 사용자의 JWT토큰이 필수입니다.
curl --location --request DELETE 'http://localhost:8080/notice/50' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiaWF0IjoxNjk3NTMzMjc2LCJleHAiOjE2OTc1NjkyNzYsImlzcyI6Imhvb2traWxsZXIiLCJ0eXBlIjoiQUNDRVNTX1RPS0VOIiwicm9sZSI6IkFETUlOIn0.ys5w2OBBcScP-yWnHn9-_RDgHlvCuQU5Apkp9gK9J0YfZG2Ckueg4B-4Q5xOQTu3-hjOVtQSHgtCw-54-CU5Rg'
footertest