Page cover image

사용자

회원 가입 요청

POST /users

Request Body

Name
Type
Description

name*

String

email*

String

nickname*

String

password*

String

ageGroup*

String

sports*

String

gender*

String

{
    // Response
}

Email 중복 확인

GET /users/email-check /{email}

Path Parameters

Name
Type
Description

email*

String

{
	"data": {
		"isduplicated":  true
	}
}

닉네임 중복 확인

GET /users/nickname-check/{nickname}

Path Parameters

Name
Type
Description

nickname*

String

{
	"data": {
		"isduplicated":  true
	}
}

로그인 요청

POST /users/login

Request Body

Name
Type
Description

email*

String

password*

String

{
  "data": {
    "token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhYmNAYWJjLmNvbSIsInRva2VuIjoiUk9MRV9VU0VSIiwiZXhwIjoxNjM4ODAzOTY4fQ.riC_VCNP0jvxnSQp7k3ajJrlspo5uWh15UeGmNveOfM" 
    "userResponse": {
        "id": 2,
        "sport": "축구",
        "email": "sun@naver.com",
        "name": "김선호",            
        "nickname": "yabi",
        "bio": "goguma",
        "gender": "남자",
        "ageGroup": "20대",  
        "userGradeResponse": [
        {"teamId": 1L,
        "grade": "CAPTAIN"},
        {"teamId": 3L,
        "grade": "GENERAL"},
        {"teamId": 4L,
        "grade": "SUB_CAPTAIN"}
        ]
    }
  }
}

로그아웃

POST /users/logout

Headers

Name
Type
Description

token*

String

{
    
}

용병 신청 리스트

GET /hires/me

Headers

Name
Type
Description

token*

String

{
	"data": {
		"hireApplications": {
			"hire_post_id": 1,
			"teamId": 1,
			"teamName": "t1",
		},
		"hireApplications": {
			"hire_post_id": 2,
			"teamId": 2,
			"teamName": "t2",
		}
	}
}

나를 팀으로 초대한 리스트

GET /invitations/me

{
	"data": {
			"invitationTeams" : {
				"teamId": 1,
				"teamInvitationsId":2,
				"teamName": "t1"			
			},
			"invitationTeams" : {
				"teamId": 2,
				"teamInvitationsId":4,
				"teamName": "t2"			
			}
}	
 

마이 페이지 조회

GET /users/me

Headers

Name
Type
Description

token*

String

{
    "data": {
	"name": "김홍중",
	"nickName" : "쯍",
	"bio" : "안녕~ 난 쯍이라고해",
	"sportsName" : "FOOTBALL",
	"gender": "남자",
	"ageGroup": "20",
	"tagNames" : [
	    "시간을 잘지켜요", "잘해요", "발이빨라요"
	],
	"matchCount": 20,
	"mannerTemperature": 36.5,
	"myTeams": [	
            {"teamId": 1,
	    "TeamName" : "t1",
	    "TeamLogo" : "http://matchus.com/img/joLogo.img"},	    
	    {"teamId": 2,
	    "TeamName" : "t2",
	    "TeamLogo" : "http://matchus.com/img/joLogo.img"}
	]	
	}
}

다른 사용자의 개인 페이지 조회

GET /users/{userId}

Path Parameters

Name
Type
Description

uerId*

Number

{
    "data": {
	"name": "김홍중",
	"nickName" : "쯍",
	"bio" : "안녕~ 난 쯍이라고해",
	"sportsName" : "FOOTBALL",
	"gender": "MALE",
	"ageGroup": "FORTIES",
	"tagNames" : [
	    "시간을 잘지켜요", "잘해요", "발이빨라요"
	],
	"matchCount": 20,
	"mannerTemperature": 36.5,
	"myTeams": [	
            {"teamId": 1,
	    "TeamName" : "t1",
	    "TeamLogo" : "http://matchus.com/img/joLogo.img"},	    
	    {"teamId": 2,
	    "TeamName" : "t2",
	    "TeamLogo" : "http://matchus.com/img/joLogo.img"}
	],
	"matchsSummary" : [
	    {"matchId" : 1,
	    "matchDate": "2021-12-01",
	    "registerTeamName" : "t1",
	    "registerTeamLogo" : "http://matchus.com/img/joLogo.img",
	    "applyTeamName" : "t2",
	    "applyTeamLogo" : "http://matchus.com/img/joLogo.img"},
	    {"matchId" : 2,
	    "matchDate": "2021-12-03",
	    "registerTeamName" : "t3",
	    "registerTeamLogo" : "http://matchus.com/img/joLogo.img",
	    "applyTeamName" : "t5",
	    "applyTeamLogo" : "http://matchus.com/img/joLogo.img"},
	]
	}
}

경기 리스트

GET /users/{userId}/matches

Path Parameters

Name
Type
Description

userId*

Long

{
  "data": {
    "userMatches": [
      {
        "matchId": 9,
        "registerTeamId": 2,
        "registerTeamName": "팀이름2",
        "registerTeamLogo": "팀로고",
        "applyTeamId": 6,
        "applyTeamName": "팀이름6",
        "applyTeamLogo": "팀로고",
        "matchDate": "2021-12-25",
        "status": "COMPLETION"
      },
      {
        "matchId": 10,
        "registerTeamId": 3,
        "registerTeamName": "팀이름3",
        "registerTeamLogo": "팀로고",
        "applyTeamId": 7,
        "applyTeamName": "팀이름7",
        "applyTeamLogo": "팀로고",
        "matchDate": "2021-12-25",
        "status": "REVIEWED"
      },
      {
        "matchId": 2,
        "registerTeamId": 2,
        "registerTeamName": "팀이름2",
        "registerTeamLogo": "팀로고",
        "applyTeamId": 3,
        "applyTeamName": "팀이름3",
        "applyTeamLogo": "팀로고",
        "matchDate": "2021-12-23",
        "status": "COMPLETION"
      }
    ]
  }
}

팀 초대 수락

POST /invitations/{invitationId}

Path Parameters

Name
Type
Description

invitationId*

Number

Request Body

Name
Type
Description

invitaionId*

Number

{
    // Response
}

팀 초대 거절

DELETE /invitations/{invitationId}

Path Parameters

Name
Type
Description

invitationId*

Number

{
    // Response
}

회원 정보 수정

PUT /users/me

Headers

Name
Type
Description

token*

String

Request Body

Name
Type
Description

nickname*

String

password*

String

bio*

String

ageGroup*

String

sprtName*

String

{
    "data": {
        "userId": 1
    }
}

회원 탈퇴

DELETE /users/me

Headers

Name
Type
Description

token*

String

{
    // Response
}

Last updated