team-crews / crews-server-spring

MIT License
0 stars 0 forks source link

refactor: 모집공고 상세 정보 조회 api 스펙 변경 #38

Closed jongmee closed 3 weeks ago

jongmee commented 3 weeks ago

Description ✏️

클라이언트와 회의한 결과에 따라 요청, 응답 값을 변경한다.

Request

before

GET http://{host}/recruitments/1
    Authorization:Bearer eyJhbGciOiJIUzI1NiJ9....
    Content-Type:application/json

after

GET http://{host}/recruitments/ready
    Authorization:Bearer eyJhbGciOiJIUzI1NiJ9....
    Content-Type:application/json

Response body

before

"sections": [
    {
      "id": 2,
      "name": "FRONTEND",
      "description": "DESCRIPTION",
      "narrativeQuestions": [
        {
          "id": 2,
          "content": "자기소개해주세요",
          "necessity": true,
          "order": 1,
          "wordLimit": 100
        }
      ],
      "selectiveQuestions": [
        {
          "id": 2,
          "choices": [
            {
              "id": 6,
              "content": "꼼꼼함"
            },
            {
              "id": 5,
              "content": "밝음"
            },
            {
              "id": 4,
              "content": "성실함"
            }
          ],
          "content": "장점을 골라주세요",
          "necessity": true,
          "order": 2,
          "minimumSelection": 1,
          "maximumSelection": 2
        }
      ]

after

 "sections": [
    {
      "id": 1,
      "name": "변경된 섹션 이름",
      "description": "DESCRIPTION",
      "questions": [
        {
          "id": 1,
          "type": "SELECTIVE",
          "content": 

questions에 한 번에 선택형, 서술형 문항 목록을 담는다. 또한 order 순으로 정렬한다.

Progress 🐢