Skip to content

โœ… [GET] interview {interview_id}

Sunny Lee edited this page Sep 2, 2023 · 2 revisions

โœ… [GET] /interview/{interview_id}

๋ชจ์˜๋ฉด์ ‘ ๋ณ„ ๋ชจ๋“  ์งˆ๋ฌธ & ์ถ”๊ฐ€์งˆ๋ฌธ์„ ์ „์†กํ•˜๋Š” API์ž…๋‹ˆ๋‹ค.


Request

request header

{
  "Authorization":"jwt token"
}

request Path Variable

interview_id number

Response

response body

[
    {
        "answer": null,
        "id": 101,
        "additional_question_1": null,
        "additional_question_2": null,
        "additional_question_3": null,
        "interview": 15,
        "question": 6,
        "gpt_answer": null,
        "additional_answer_1": null,
        "additional_answer_2": null,
        "additional_answer_3": null,
        "question_model": {
            "category": "CATEGORY_NW",
            "id": 6,
            "title": "JWT ํ† ํฐ์— ๋Œ€ํ•ด ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”."
        }
    },
    {
        "answer": null,
        "id": 102,
        "additional_question_1": null,
        "additional_question_2": null,
        "additional_question_3": null,
        "interview": 15,
        "question": 7,
        "gpt_answer": null,
        "additional_answer_1": null,
        "additional_answer_2": null,
        "additional_answer_3": null,
        "question_model": {
            "category": "CATEGORY_NW",
            "id": 7,
            "title": "DNS๊ฐ€ ๋ฌด์—‡์ธ๊ฐ€์š”?"
        }
    },
    {
        "answer": null,
        "id": 103,
        "additional_question_1": null,
        "additional_question_2": null,
        "additional_question_3": null,
        "interview": 15,
        "question": 10,
        "gpt_answer": null,
        "additional_answer_1": null,
        "additional_answer_2": null,
        "additional_answer_3": null,
        "question_model": {
            "category": "CATEGORY_NW",
            "id": 10,
            "title": "HTTP1, 2, 3์˜ ํŠน์ง•์„ ์ฐจ์ด์ ์— ์ง‘์ค‘ํ•ด์„œ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”."
        }
    },
    {
        "answer": null,
        "id": 104,
        "additional_question_1": null,
        "additional_question_2": null,
        "additional_question_3": null,
        "interview": 15,
        "question": 11,
        "gpt_answer": null,
        "additional_answer_1": null,
        "additional_answer_2": null,
        "additional_answer_3": null,
        "question_model": {
            "category": "CATEGORY_NW",
            "id": 11,
            "title": "CORS๋ž€ ๋ฌด์—‡์ด๋ฉฐ ์ด๊ฒƒ์— ๋Œ€ํ•ด์„œ ์„ค๋ช…ํ•ด๋ณด์„ธ์š”."
        }
    },
    {
        "answer": null,
        "id": 105,
        "additional_question_1": null,
        "additional_question_2": null,
        "additional_question_3": null,
        "interview": 15,
        "question": 1,
        "gpt_answer": null,
        "additional_answer_1": null,
        "additional_answer_2": null,
        "additional_answer_3": null,
        "question_model": {
            "category": "CATEGORY_NW",
            "id": 1,
            "title": "OSI 7๊ณ„์ธต์— ๋Œ€ํ•ด ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”."
        }
    },
    {
        "answer": "TCP 3-Way Handshake๋Š” ๊ฐ€์ƒํšŒ์„ ์„ ์ˆ˜๋ฆฝํ•˜๋Š” ๋‹จ๊ณ„์ž…๋‹ˆ๋‹ค. ํด๋ผ์ด์–ธํŠธ๋Š” ์„œ๋ฒ„์— ์š”์ฒญ์„ ์ „์†กํ•  ์ˆ˜ ์žˆ๋Š”์ง€, ์„œ๋ฒ„๋Š” ํด๋ผ์ด์–ธํŠธ์—๊ฒŒ ์‘๋‹ต์„ ์ „์†กํ•  ์ˆ˜ ์žˆ๋Š”์ง€ ํ™•์ธํ•˜๋Š” ๊ณผ์ •์— ํ•ด๋‹น๋ฉ๋‹ˆ๋‹ค. Sequence, ACK Packet์„ ์ฃผ๊ณ ๋ฐ›์œผ๋ฉฐ, ์ด๋ฏธ์˜ ๋‚œ์ˆ˜๋กœ SYN ํ”Œ๋ž˜๊ทธ๋ฅผ ์ „์†กํ•˜๊ณ , ACK ํ”Œ๋ž˜๊ทธ์—๋Š” ์ด๋ฅผ ๋”ํ•œ ๊ฐ’์„ ์ „์†กํ•ฉ๋‹ˆ๋‹ค. ์ •ํ™•ํ•œ ์ˆœ์„œ๋Š” SYN, ๋‹ค์Œ์— ACK, ๊ทธ๋ฆฌ๊ณ  SYN๊ณผ ACK์„ ๋‹ค์Œ์— ํ•œ ๋ฒˆ ๋” ์ „์†กํ•˜๋Š” ์ˆœ์œผ๋กœ ์ผ์–ด๋‚ฉ๋‹ˆ๋‹ค. TCP 4-Way Handshake๋Š” TCP ์—ฐ๊ฒฐ์„ ํ•ด์ œํ•˜๋Š” ๋‹จ๊ณ„๋กœ, ํด๋ผ์ด์–ธํŠธ๋Š” ์„œ๋ฒ„์—๊ฒŒ ์—ฐ๊ฒฐ ํ•ด์ œ๋ฅผ ํ†ต์ง€ํ•˜๊ณ , ์„œ๋ฒ„๋Š” ์ด๋ฅผ ํ™•์ธํ•˜๊ณ  ํด๋ผ์ด์–ธํŠธ์—๊ฒŒ ์ด๋ฅผ ๋ฐ›์•˜์Œ์„ ์ „์†กํ•ด์ฃผ๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ๊ทธ ํ›„์— ์ตœ์ข…์ ์œผ๋กœ ์—ฐ๊ฒฐ์ด ํ•ด์ œ๋˜๋Š”๋ฐ, ๋‹จ ์„œ๋ฒ„์—์„œ ์†Œ์ผ“์ด ๋‹ซํ˜”๋‹ค๊ณ  ์†ก์ง€ํ•ด๋„ ํด๋ผ์ด์–ธํŠธ ์ธก์—์„œ๋Š” ์ผ์ •์‹œ๊ฐ„ ๋Œ€๊ธฐํ•˜๋Š”๋ฐ, ๊ทธ๋Š” ํ˜น์‹œ๋‚˜ ํŒจํ‚ท์ด ๋‚˜์ค‘์— ๋„์ฐฉํ•  ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์„ ๋ฐฉ์ง€ํ•˜๊ธฐ ์œ„ํ•ด์„œ์ž…๋‹ˆ๋‹ค.",
        "id": 106,
        "additional_question_1": "3-way hand shake์˜ ๊ฐ ๋‹จ๊ณ„์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์„ค๋ช…ํ•ด๋ณด์„ธ์š”.",
        "additional_question_2": "4-way hand shake์—์„œ ํด๋ผ์ด์–ธํŠธ์™€ ์„œ๋ฒ„๊ฐ€ ๊ฐ๊ฐ ์–ด๋–ค ๋™์ž‘์„ ํ•˜๋Š”์ง€ ์„ค๋ช…ํ•ด๋ณด์„ธ์š”.",
        "additional_question_3": "4-way hand shake์—์„œ ์™œ ํด๋ผ์ด์–ธํŠธ๋Š” ์ผ์ • ์‹œ๊ฐ„ ๋™์•ˆ ๋Œ€๊ธฐํ•ด์•ผ ํ•˜๋Š”์ง€ ์„ค๋ช…ํ•ด๋ณด์„ธ์š”.",
        "interview": 15,
        "question": 9,
        "gpt_answer": "TCP 3-Way Handshake๋Š” ํด๋ผ์ด์–ธํŠธ์™€ ์„œ๋ฒ„ ๊ฐ„์— TCP ์—ฐ๊ฒฐ์„ ์ˆ˜๋ฆฝํ•˜๋Š” ๊ณผ์ •์ž…๋‹ˆ๋‹ค. ์ด ๊ณผ์ •์€ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ง„ํ–‰๋ฉ๋‹ˆ๋‹ค.\n\n1. ํด๋ผ์ด์–ธํŠธ๋Š” ์„œ๋ฒ„์—๊ฒŒ ์—ฐ๊ฒฐ ์š”์ฒญ์„ ๋ณด๋‚ด๊ธฐ ์œ„ํ•ด SYN ํŒจํ‚ท์„ ์ „์†กํ•ฉ๋‹ˆ๋‹ค. ์ด ํŒจํ‚ท์—๋Š” ํด๋ผ์ด์–ธํŠธ์˜ ์ดˆ๊ธฐ ์ˆœ์„œ ๋ฒˆํ˜ธ(Sequence Number)๊ฐ€ ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.\n\n2. ์„œ๋ฒ„๋Š” ํด๋ผ์ด์–ธํŠธ์˜ ์—ฐ๊ฒฐ ์š”์ฒญ์„ ๋ฐ›๊ณ , SYN ํŒจํ‚ท์„ ๋ฐ›์•˜๋‹ค๋Š” ์‘๋‹ต์œผ๋กœ ACK ํŒจํ‚ท์„ ์ „์†กํ•ฉ๋‹ˆ๋‹ค. ์ด๋•Œ, ์„œ๋ฒ„๋Š” ์ž์‹ ์˜ ์ดˆ๊ธฐ ์ˆœ์„œ ๋ฒˆํ˜ธ๋ฅผ ํด๋ผ์ด์–ธํŠธ์˜ ์ˆœ์„œ ๋ฒˆํ˜ธ์— 1์„ ๋”ํ•œ ๊ฐ’์œผ๋กœ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ, ์„œ๋ฒ„๋Š” ํด๋ผ์ด์–ธํŠธ์˜ SYN ํŒจํ‚ท์„ ๋ฐ›์•˜๋‹ค๋Š” ์˜๋ฏธ๋กœ SYN ํŒจํ‚ท์„ ํฌํ•จํ•œ ACK ํŒจํ‚ท์„ ์ „์†กํ•ฉ๋‹ˆ๋‹ค.\n\n3. ํด๋ผ์ด์–ธํŠธ๋Š” ์„œ๋ฒ„์˜ ACK ํŒจํ‚ท์„ ๋ฐ›๊ณ , ์—ฐ๊ฒฐ์ด ์ˆ˜๋ฆฝ๋˜์—ˆ๋‹ค๋Š” ์˜๋ฏธ๋กœ ACK ํŒจํ‚ท์„ ๋‹ค์‹œ ์„œ๋ฒ„์—๊ฒŒ ์ „์†กํ•ฉ๋‹ˆ๋‹ค. ์ด๋•Œ, ํด๋ผ์ด์–ธํŠธ๋Š” ์„œ๋ฒ„์˜ ์ดˆ๊ธฐ ์ˆœ์„œ ๋ฒˆํ˜ธ์— 1์„ ๋”ํ•œ ๊ฐ’์„ ์ž์‹ ์˜ ์ˆœ์„œ ๋ฒˆํ˜ธ๋กœ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.\n\n์ด๋ ‡๊ฒŒ 3-Way Handshake๊ฐ€ ์™„๋ฃŒ๋˜๋ฉด ํด๋ผ์ด์–ธํŠธ์™€ ์„œ๋ฒ„๋Š” ์—ฐ๊ฒฐ์ด ์ˆ˜๋ฆฝ๋˜๊ณ , ๋ฐ์ดํ„ฐ๋ฅผ ์ฃผ๊ณ ๋ฐ›์„ ์ˆ˜ ์žˆ๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.\n\nTCP 4-Way Handshake๋Š” ํด๋ผ์ด์–ธํŠธ์™€ ์„œ๋ฒ„ ๊ฐ„์— TCP ์—ฐ๊ฒฐ์„ ํ•ด์ œํ•˜๋Š” ๊ณผ์ •์ž…๋‹ˆ๋‹ค. ์ด ๊ณผ์ •์€ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ง„ํ–‰๋ฉ๋‹ˆ๋‹ค.\n\n1. ํด๋ผ์ด์–ธํŠธ๋Š” ์„œ๋ฒ„์—๊ฒŒ ์—ฐ๊ฒฐ ํ•ด์ œ ์š”์ฒญ์„ ๋ณด๋‚ด๊ธฐ ์œ„ํ•ด FIN ํŒจํ‚ท์„ ์ „์†กํ•ฉ๋‹ˆ๋‹ค. ์ด๋•Œ, ํด๋ผ์ด์–ธํŠธ๋Š” ๋” ์ด์ƒ ๋ฐ์ดํ„ฐ๋ฅผ ์ „์†กํ•˜์ง€ ์•Š์„ ๊ฒƒ์ž„์„ ๋‚˜ํƒ€๋‚ด๊ธฐ ์œ„ํ•ด FIN ํ”Œ๋ž˜๊ทธ๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.\n\n2. ์„œ๋ฒ„๋Š” ํด๋ผ์ด์–ธํŠธ์˜ ์—ฐ๊ฒฐ ํ•ด์ œ ์š”์ฒญ์„ ๋ฐ›๊ณ , ACK ํŒจํ‚ท์„ ์ „์†กํ•˜์—ฌ ํด๋ผ์ด์–ธํŠธ์˜ FIN ํŒจํ‚ท์„ ๋ฐ›์•˜๋‹ค๋Š” ๊ฒƒ์„ ์•Œ๋ฆฝ๋‹ˆ๋‹ค.\n\n3. ์„œ๋ฒ„๋Š” ๋” ์ด์ƒ ๋ฐ์ดํ„ฐ๋ฅผ ์ „์†กํ•˜์ง€ ์•Š์„ ๊ฒƒ์ž„์„ ๋‚˜ํƒ€๋‚ด๊ธฐ ์œ„ํ•ด FIN ํŒจํ‚ท์„ ์ „์†กํ•ฉ๋‹ˆ๋‹ค. ์ด๋•Œ, ์„œ๋ฒ„๋Š” ์ž์‹ ์˜ ์ดˆ๊ธฐ ์ˆœ์„œ ๋ฒˆํ˜ธ๋ฅผ ํด๋ผ์ด์–ธํŠธ์˜ ์ˆœ์„œ ๋ฒˆํ˜ธ์— 1์„ ๋”ํ•œ ๊ฐ’์œผ๋กœ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.\n\n4. ํด๋ผ์ด์–ธํŠธ๋Š” ์„œ๋ฒ„์˜ FIN ํŒจํ‚ท์„ ๋ฐ›๊ณ , ACK ํŒจํ‚ท์„ ์ „์†กํ•˜์—ฌ ์„œ๋ฒ„์˜ FIN ํŒจํ‚ท์„ ๋ฐ›์•˜๋‹ค๋Š” ๊ฒƒ์„ ์•Œ๋ฆฝ๋‹ˆ๋‹ค.\n\n์ด๋ ‡๊ฒŒ 4-Way Handshake๊ฐ€ ์™„๋ฃŒ๋˜๋ฉด ํด๋ผ์ด์–ธํŠธ์™€ ์„œ๋ฒ„๋Š” ์—ฐ๊ฒฐ์ด ํ•ด์ œ๋˜๊ณ , ๋” ์ด์ƒ ๋ฐ์ดํ„ฐ๋ฅผ ์ฃผ๊ณ ๋ฐ›์„ ์ˆ˜ ์—†๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.",
        "additional_answer_1": "์•„๋‹ˆ์ง„์งœ๋ ˆ์•Œ๋ชจ๋ฅด๊ฒ ์–ด์š”..",
        "additional_answer_2": null,
        "additional_answer_3": null,
        "question_model": {
            "category": "CATEGORY_NW",
            "id": 9,
            "title": "3-way hand shake, 4-way hand shake ํ๋ฆ„์— ๋Œ€ํ•ด์„œ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”."
        }
    },
    {
        "answer": null,
        "id": 107,
        "additional_question_1": null,
        "additional_question_2": null,
        "additional_question_3": null,
        "interview": 15,
        "question": 3,
        "gpt_answer": null,
        "additional_answer_1": null,
        "additional_answer_2": null,
        "additional_answer_3": null,
        "question_model": {
            "category": "CATEGORY_NW",
            "id": 3,
            "title": "์ฟ ํ‚ค(Cookie)์™€ ์„ธ์…˜(Session)์˜ ์ฐจ์ด์ ์— ๋Œ€ํ•ด ๋งํ•ด์ฃผ์„ธ์š”."
        }
    },
    {
        "answer": null,
        "id": 108,
        "additional_question_1": null,
        "additional_question_2": null,
        "additional_question_3": null,
        "interview": 15,
        "question": 8,
        "gpt_answer": null,
        "additional_answer_1": null,
        "additional_answer_2": null,
        "additional_answer_3": null,
        "question_model": {
            "category": "CATEGORY_NW",
            "id": 8,
            "title": "TCP ํ—ค๋”์— ๋Œ€ํ•ด์„œ ์„ค๋ช…ํ•ด ์ฃผ์„ธ์š”."
        }
    },
    {
        "answer": null,
        "id": 109,
        "additional_question_1": null,
        "additional_question_2": null,
        "additional_question_3": null,
        "interview": 15,
        "question": 5,
        "gpt_answer": null,
        "additional_answer_1": null,
        "additional_answer_2": null,
        "additional_answer_3": null,
        "question_model": {
            "category": "CATEGORY_NW",
            "id": 5,
            "title": "TCP์™€ UDP์˜ ์ฐจ์ด๋ฅผ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”."
        }
    },
    {
        "answer": null,
        "id": 110,
        "additional_question_1": null,
        "additional_question_2": null,
        "additional_question_3": null,
        "interview": 15,
        "question": 2,
        "gpt_answer": null,
        "additional_answer_1": null,
        "additional_answer_2": null,
        "additional_answer_3": null,
        "question_model": {
            "category": "CATEGORY_NW",
            "id": 2,
            "title": "HTTP์™€ HTTPS์˜ ์ฐจ์ด์ ์€ ๋ฌด์—‡์ธ๊ฐ€์š”?"
        }
    }
]