์ง๋ฌธ ์ธํธ ์์ฑ |
POST |
/api/question-sets |
๋ฉด์ ์ง๋ฌธ ์ธํธ ์์ฑ |
`json { "title": "๋ฉด์ ์ง๋ฌธ ์ธํธ ์ ๋ชฉ", "description": "๋ฉด์ ์ง๋ฌธ ์ธํธ ์ค๋ช
.", "versionNumber": 1, |
|
"parentVersionId": 1, |
|
|
|
|
|
"isShared": false, "tags": ["๋ฐฑ์๋"], "questionMaps": [ { "id": 5 }, { "id": 6 } ] }` |
json { "id": 11, "ownerUserId": 1, "title": "๋ฉด์ ์ง๋ฌธ ์ธํธ ์ ๋ชฉ", "description": "๋ฉด์ ์ง๋ฌธ ์ธํธ์
์ค๋ช
.", "versionNumber": 1, "parentVersionId": 1, "isShared": false, "tags":[ { "id": 1, "tag": "๋ฐฑ์๋" } ], "questionMaps": [ { "id": 5, "content": "์ง๋ฌธ ๋ด์ฉ", "questionType": 2, "expectedAnswer": "์์ ๋ต๋ณ", "answers": [ {"id": 7, "content": "๋ต๋ณ"} ] } ], "createdAt": "2025-01-01T01:00:00Z", "updatedAt": "2025-01-01T01:00:00Z" } |
|
|
|
|
์ง๋ฌธ ์ธํธ ๋ชฉ๋ก ์กฐํ |
GET |
/api/question-sets |
๋ชจ๋ ๋ฉด์ ์ง๋ฌธ ์ธํธ ๋ชฉ๋ก ์กฐํ |
|
json [ { "id": 5, "ownerUserId": 5, "title": "์์ ๋ ์ ๋ชฉ", "description": "์์ ๋ ์ค๋ช
", "versionNumber": 2, "parentVersionId": 4, "isShared": false, "tags": [ { "id": 1, "tag":๋ฐฑ์๋" } ], "questionMaps": [ { "id": 2, "questionId": 102, "displayOrder": 2 }, { "id": 3, "questionId": 103, "displayOrder": 3 } ], "createdAt": "2025-08-01T01:00:00Z", "updatedAt": "2025-08-05T03:00:00Z" }, { "id": 6, "ownerUserId": 6, "title": "์์ ๋ ์ ๋ชฉ2", "description": "์์ ๋ ์ค๋ช
2", "versionNumber": 2, "parentVersionId": 4, "isShared": false, "tags": [ { "id": 1, "tag":๋ฐฑ์๋" } ], "questionMaps": [ { "id": 4, "questionId": 104, "displayOrder": 4 }, { "id": 5, "questionId": 105, "displayOrder": 5 } ], "createdAt": "2025-08-01T01:00:00Z", "updatedAt": "2025-08-05T03:00:00Z" } ] |
์ง๋ฌธ ์ธํธ ์กฐํ |
GET |
/api/question-sets/{id} |
๋ฉด์ ์ง๋ฌธ ์ธํธ ์กฐํ |
|
json { "id": 5, "ownerUserId": 5, "title": "์์ ๋ ์ ๋ชฉ", "description": "์์ ๋ ์ค๋ช
", "versionNumber": 2, "parentVersionId": 4, "isShared": false, "tags": [ { "id": 1, "tag":๋ฐฑ์๋" } ], "questionMaps": [ { "id": 2, "questionId": 102, "displayOrder": 2 }, { "id": 3, "questionId": 103, "displayOrder": 3 } ], "createdAt": "2025-08-01T01:00:00Z", "updatedAt": "2025-08-05T03:00:00Z" } |
์ง๋ฌธ ์ธํธ ์์ |
PATCH |
/api/question-sets/{id} |
๋ฉด์ ์ง๋ฌธ ์ธํธ ์์ |
json { "ownerUserId": 5, โtitleโ: โ์์ ๋ ์ ๋ชฉโ, โdescriptionโ: โ์์ ๋ ์ค๋ช
โ, "tags": ["๋ฐฑ์๋"], "questionMaps: [ { "questionId": 103, "displayOrder": 3 } ]", โversionNumberโ: 2, โparentVersionIdโ: 4, โisSharedโ: false } |
json { "id": 5, "ownerUserId": 5, "title": "์์ ๋ ์ ๋ชฉ", "description": "์์ ๋ ์ค๋ช
", "versionNumber": 2, "parentVersionId": 4, "isShared": false, "tags": [ { "id": 1, "tag":๋ฐฑ์๋" } ], "questionMaps": [ { "id": 2, "questionId": 102, "displayOrder": 2 }, { "id": 3, "questionId": 103, "displayOrder": 3 } ], "createdAt": "2025-08-01T01:00:00Z", "updatedAt": "2025-08-05T03:00:00Z" } |
์ง๋ฌธ ์ธํธ ์ญ์ |
DELETE |
/api/question-sets/{id} |
๋ฉด์ ์ง๋ฌธ ์ธํธ ์ญ์ |
|
json { "deletedAt": "2025-01-01T01:00:00Z", โmessageโ : โ์ง๋ฌธ ์ธํธ๊ฐ ์ญ์ ๋์ต๋๋ค.โ } |
์ง๋ฌธ ์์ฑ |
POST |
/api/questions |
๋ฉด์ ์ง๋ฌธ ์์ฑ |
json { โcontentโ: โ์ ์ง๋ฌธ ๋ด์ฉโ, โquestionTypeโ: 2, โexpectedAnswerโ: โ์์ ๋ต๋ณโ } |
json { "id": 20, "content": "์ ์ง๋ฌธ ๋ด์ฉ", "questionType": 2, "expectedAnswer": "์์ ๋ต๋ณ", "answers": [], "createdAt": "2025-01-01T01:00:00Z", "updatedAt": "2025-01-02T01:00:00Z" } |
์ง๋ฌธ ๋ชฉ๋ก ์กฐํ |
GET |
/api/questions |
๋ฉด์ ์ง๋ฌธ ๋ชฉ๋ก ์กฐํ |
|
json [ { "id": 10, "content": "์์ ๋ ์ง๋ฌธ ๋ด์ฉ", "questionType": 1, โexpectedAnswerโ: โ์์ ๋ ์์ ๋ต๋ณโ, "answers": [ { "id": 5, "content": "๋ต๋ณ ๋ด์ฉ" } ], "createdAt": "2025-01-01T01:00:00Z", "updatedAt": "2025-01-02T01:00:00Z" }, { "id": 11, "content": "์์ ๋ ์ง๋ฌธ ๋ด์ฉ2", "questionType": 1, โexpectedAnswerโ: โ์์ ๋ ์์ ๋ต๋ณ2โ, "answers": [ { "id": 6, "content": "๋ต๋ณ ๋ด์ฉ2" } ], "createdAt": "2025-01-01T01:00:00Z", "updatedAt": "2025-01-02T01:00:00Z" } ] |
์ง๋ฌธ ์กฐํ |
GET |
/api/questions/{id} |
๋ฉด์ ์ง๋ฌธ ์กฐํ |
|
json { "id": 10, "content": "์์ ๋ ์ง๋ฌธ ๋ด์ฉ", "questionType": 1, โexpectedAnswerโ: โ์์ ๋ ์์ ๋ต๋ณโ, "answers": [ { "id": 5, "content": "๋ต๋ณ ๋ด์ฉ" } ], "createdAt": "2025-01-01T01:00:00Z", "updatedAt": "2025-01-02T01:00:00Z" } |
์ง๋ฌธ ์์ |
PATCH |
/api/questions/{id} |
๋ฉด์ ์ง๋ฌธ ์์ |
json { โcontentโ: โ์์ ํ ์ง๋ฌธ ๋ด์ฉโ, "questionTypeโ: 1, โexpectedAnswerโ: โ์์ ํ ์์ ๋ต๋ณโ, "answers": [ { "id": 5 } ] } |
json { "id": 10, "content": "์์ ๋ ์ง๋ฌธ ๋ด์ฉ", "questionType": 1, โexpectedAnswerโ: โ์์ ๋ ์์ ๋ต๋ณโ, "answers": [ { "id": 5, "content": "๋ต๋ณ ๋ด์ฉ" } ], "createdAt": "2025-01-01T01:00:00Z", "updatedAt": "2025-01-02T01:00:00Z" } |
์ง๋ฌธ ์ญ์ |
DELETE |
/api/questions/{id} |
๋ฉด์ ์ง๋ฌธ ์ญ์ |
|
json { "deletedAt": "2025-01-01T01:00:00Z", โmessageโ : โ์ง๋ฌธ์ด ์ญ์ ๋์ต๋๋ค.โ } |
๋ต๋ณ ์์ฑ |
POST |
/api/answers |
๋ฉด์ ๋ต๋ณ ์์ฑ |
json { โcontentโ: โ์ ๋ต๋ณ ๋ด์ฉโ, โquestionโ: [ { "id": 5 } ] } |
json { "id": 10, "content": "์ ๋ต๋ณ ๋ด์ฉ", "question": [ { "id": 5, "content": "์ง๋ฌธ ๋ด์ฉ", "questionType": 2, "expectedAnswer": "์์ ๋ต๋ณ" } ], "createdAt": "2025-01-01T01:00:00Z", "updateddAt": "2025-01-02T01:00:00Z" } |
๋ต๋ณ ๋ชฉ๋ก ์กฐํ |
GET |
/api/answers |
๋ฉด์ ๋ต๋ณ ๋ชฉ๋ก ์กฐํ |
|
json [ { "id": 10, "content": "์ ๋ต๋ณ ๋ด์ฉ", "question": [ { "id": 5, "content": "์ง๋ฌธ ๋ด์ฉ", "questionType": 2, "expectedAnswer": "์์ ๋ต๋ณ" } ], "createdAt": "2025-01-01T01:00:00Z", "updateddAt": "2025-01-02T01:00:00Z" }, { "id": 11, "content": "์ ๋ต๋ณ ๋ด์ฉ2", "question": [ { "id": 6, "content": "์ง๋ฌธ ๋ด์ฉ2", "questionType": 2, "expectedAnswer": "์์ ๋ต๋ณ2" } ], "createdAt": "2025-01-01T01:00:00Z", "updateddAt": "2025-01-02T01:00:00Z" } ] |
๋ต๋ณ ์กฐํ |
GET |
/api/answers/{id} |
๋ฉด์ ๋ต๋ณ ์กฐํ |
|
{ "id" : 10, "content" : "์์ ๋ ์ง๋ฌธ ๋ด์ฉ", "questionType" : 1, โexpectedAnswerโ : โ์์ ๋ ์์ ๋ต๋ณโ, "answers": [ { "id": 5, "content": "๋ต๋ณ ๋ด์ฉ" } ], "createdAt": "2025-01-01T01:00:00Z", "updatedAt": "2025-01-02T01:00:00Z" } |
๋ต๋ณ ์์ |
PATCH |
/api/answers/{id} |
๋ฉด์ ๋ต๋ณ ์์ |
json { โcontentโ: โ์์ ํ ๋ต๋ณ ๋ด์ฉโ } |
json { "id": 10, "content" :"์์ ๋ ๋ต๋ณ ๋ด์ฉ", "question": [ { "id": 5, "content": "์ง๋ฌธ ๋ด์ฉ", "questionType": 2, "expectedAnswer": "์์ ๋ต๋ณ" } ], "createdAt": "2025-01-01T01:00:00Z", "updateddAt": "2025-01-02T01:00:00Z" } |
๋ต๋ณ ์ญ์ |
DELETE |
/api/answers/{id} |
๋ฉด์ ๋ต๋ณ ์ญ์ |
|
json { "deletedAt": "2025-01-01T01:00:00Z", โmessageโ : โ๋ต๋ณ์ด ์ญ์ ๋์ต๋๋ค.โ } |