9in-team / iOS

구인팀 iOS 프로젝트 (SwiftUI)
0 stars 0 forks source link

팀 생성 기능 구현 (POST /team/{id}) #63

Open heonha opened 1 year ago

heonha commented 1 year ago

작업 체크리스트


API

요청 POST /team/{id}

{
    "content" : "열심히 할 사람 구함",
    "subject" : "스프링 프젝 구함",
    "openChatUrl" : "http://9in-proejct.chat",
    "teamTemplates" : [
        {"type" : "TEXT","question" : "의지를 말해보아라"},
        {"type" : "CHECKBOX", "question" : "열심히 할거니", "options" : "네, 아니"}
    ],
    "types" : ["KOTLIN","JAVA", "MYSQL"],
    "subjectType" : "PROJECT",
    "roles" : [
        {"name" : "프론트엔드", "requiredCount" : 2},
        {"name" : "백엔드", "requiredCount" : 3}
    ]
}

응답 200 OK

{ 
  "detail": {
    "teamId": 2,
    "openChatUrl": "http://9in-proejct.chat",
    "content": "열심히 할 사람 구함",
    "subject": "스프링 프젝 구함",
    "subjectType": "PROJECT",
    "teamTemplates": [
      {
        "type": "TEXT",
        "question": "의지를 말해보아라"
      },
      {
        "type": "CHECKBOX",
        "question": "열심히 할거니",
        "options": "네, 아니"
      }
    ],
    "types": [
      "KOTLIN",
      "JAVA",
      "MYSQL"
    ],
    "roles": [
      {
        "name": "프론트엔드",
        "requiredCount": 2,
        "hiredCount": 0
      },
      {
        "name": "백엔드",
        "requiredCount": 3,
        "hiredCount": 0
      }
    ]
  }
}