-
Notifications
You must be signed in to change notification settings - Fork 0
1.4) Admin Request Sample
Jong1 edited this page Nov 4, 2023
·
1 revision
Warning
모든 Request, Response가 존재하지 않을 수 있습니다
curl --location 'http://localhost:8080/admin/account/list/USER?page=0&limit=3&userStatus=ACTIVE' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiaWF0IjoxNjk3NTMzMjc2LCJleHAiOjE2OTc1NjkyNzYsImlzcyI6Imhvb2traWxsZXIiLCJ0eXBlIjoiQUNDRVNTX1RPS0VOIiwicm9sZSI6IkFETUlOIn0.ys5w2OBBcScP-yWnHn9-_RDgHlvCuQU5Apkp9gK9J0YfZG2Ckueg4B-4Q5xOQTu3-hjOVtQSHgtCw-54-CU5Rg'
[
{
"createAt": "2023-10-17 12:26:27",
"updateAt": "2023-10-17 12:26:27",
"id": 8,
"email": "[email protected]",
"nickName": "사용자1",
"createdAt": "2023-10-17T12:26:27.000+00:00"
},
{
"createAt": "2023-10-17 12:26:27",
"updateAt": "2023-10-17 12:26:27",
"id": 9,
"email": "[email protected]",
"nickName": "사용자2",
"createdAt": "2023-10-17T12:26:27.000+00:00"
},
{
"createAt": "2023-10-17 12:26:27",
"updateAt": "2023-10-17 12:26:27",
"id": 10,
"email": "[email protected]",
"nickName": "사용자3",
"createdAt": "2023-10-17T12:26:27.000+00:00"
}
]
curl --location 'http://localhost:8080/admin/account/16' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiaWF0IjoxNjk3NTMzMjc2LCJleHAiOjE2OTc1NjkyNzYsImlzcyI6Imhvb2traWxsZXIiLCJ0eXBlIjoiQUNDRVNTX1RPS0VOIiwicm9sZSI6IkFETUlOIn0.ys5w2OBBcScP-yWnHn9-_RDgHlvCuQU5Apkp9gK9J0YfZG2Ckueg4B-4Q5xOQTu3-hjOVtQSHgtCw-54-CU5Rg' \
--header 'language: KO'
{
"id": 16,
"email": "[email protected]",
"nickName": "사용자9",
"thumbnail": null,
"role": "USER",
"status": "ACTIVE",
"loginType": "DEFAULT"
}
curl --location 'http://localhost:8080/admin/account/article/1?page=0&limit=3' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiaWF0IjoxNjk3NTMzMjc2LCJleHAiOjE2OTc1NjkyNzYsImlzcyI6Imhvb2traWxsZXIiLCJ0eXBlIjoiQUNDRVNTX1RPS0VOIiwicm9sZSI6IkFETUlOIn0.ys5w2OBBcScP-yWnHn9-_RDgHlvCuQU5Apkp9gK9J0YfZG2Ckueg4B-4Q5xOQTu3-hjOVtQSHgtCw-54-CU5Rg' \
--header 'language: KO'
[
{
"createAt": "2023-10-17 11:26:00",
"updateAt": "2023-10-17 11:26:00",
"boardId": 1,
"articleId": 6,
"orgArticleLanguage": "KO",
"status": "PUBLIC",
"likeCount": 0,
"contentLanguage": "KO",
"title": "미쯔야~",
"content": "<b>사랑해 ~~~~~~~</b>",
"createdUser": {
"createAt": "2023-10-17 12:29:12",
"updateAt": "2023-10-17 12:29:12",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"updatedUser": {
"createAt": "2023-10-17 12:29:12",
"updateAt": "2023-10-17 12:29:12",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
}
},
{
"createAt": "2023-10-17 11:25:36",
"updateAt": "2023-10-17 11:25:36",
"boardId": 3,
"articleId": 5,
"orgArticleLanguage": "KO",
"status": "PUBLIC",
"likeCount": 0,
"contentLanguage": "KO",
"title": "엘라스틴했어요",
"content": "<p>배고파요 흑흑흑</p>",
"createdUser": {
"createAt": "2023-10-17 12:29:12",
"updateAt": "2023-10-17 12:29:12",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"updatedUser": {
"createAt": "2023-10-17 12:29:12",
"updateAt": "2023-10-17 12:29:12",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
}
},
{
"createAt": "2023-10-17 11:25:20",
"updateAt": "2023-10-17 11:25:20",
"boardId": 2,
"articleId": 4,
"orgArticleLanguage": "KO",
"status": "PUBLIC",
"likeCount": 0,
"contentLanguage": "KO",
"title": "오리엔탈",
"content": "<div>유니티</div>",
"createdUser": {
"createAt": "2023-10-17 12:29:12",
"updateAt": "2023-10-17 12:29:12",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"updatedUser": {
"createAt": "2023-10-17 12:29:12",
"updateAt": "2023-10-17 12:29:12",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
}
}
]
curl --location 'http://localhost:8080/admin/account/reply/1?page=0&limit=3' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiaWF0IjoxNjk3NTMzMjc2LCJleHAiOjE2OTc1NjkyNzYsImlzcyI6Imhvb2traWxsZXIiLCJ0eXBlIjoiQUNDRVNTX1RPS0VOIiwicm9sZSI6IkFETUlOIn0.ys5w2OBBcScP-yWnHn9-_RDgHlvCuQU5Apkp9gK9J0YfZG2Ckueg4B-4Q5xOQTu3-hjOVtQSHgtCw-54-CU5Rg' \
--header 'language: KO'
[
{
"createAt": "2023-10-17 12:05:33",
"updateAt": "2023-10-17 12:05:33",
"articleId": 5,
"replyId": 8,
"orgReplyLanguage": "EN",
"createUser": {
"createAt": "2023-10-17 12:30:44",
"updateAt": "2023-10-17 12:30:44",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"content": "나는 매우 슬프다"
},
{
"createAt": "2023-10-17 12:05:20",
"updateAt": "2023-10-17 12:05:20",
"articleId": 5,
"replyId": 7,
"orgReplyLanguage": "KO",
"createUser": {
"createAt": "2023-10-17 12:30:44",
"updateAt": "2023-10-17 12:30:44",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"content": "뿌애애애애애애앵"
},
{
"createAt": "2023-10-17 12:05:00",
"updateAt": "2023-10-17 12:05:00",
"articleId": 5,
"replyId": 6,
"orgReplyLanguage": "KO",
"createUser": {
"createAt": "2023-10-17 12:30:44",
"updateAt": "2023-10-17 12:30:44",
"id": 1,
"email": "[email protected]",
"password": "$2a$10$dGUjr0mYEzEl55j8J0eJdeGHtPtIYENiQj04hVrscU37bySJl4Bla",
"nickName": "관리자",
"thumbnail": null,
"role": "ADMIN",
"oauthInfo": null,
"status": "ACTIVE",
"loginType": "DEFAULT"
},
"content": "코드싸개가 흑흑흑"
}
]
{
"email" : "[email protected]",
"nickName" : "테스트용 관리자 추가",
"password" : "11111112"
}
curl --location --request PUT 'http://localhost:8080/admin/account/status' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiaWF0IjoxNjk3NTMzMjc2LCJleHAiOjE2OTc1NjkyNzYsImlzcyI6Imhvb2traWxsZXIiLCJ0eXBlIjoiQUNDRVNTX1RPS0VOIiwicm9sZSI6IkFETUlOIn0.ys5w2OBBcScP-yWnHn9-_RDgHlvCuQU5Apkp9gK9J0YfZG2Ckueg4B-4Q5xOQTu3-hjOVtQSHgtCw-54-CU5Rg' \
--header 'language: KO' \
--header 'Content-Type: application/json' \
--data '{
"userId" : 2,
"status" : "DELETE"
}'
footertest