Main API멤버 API
GET /member/check/{id}
아이디 중복 확인
아이디 중복 확인
기업 회원가입 시 ID 중복 여부를 확인합니다.
| 항목 | 값 |
|---|---|
| 메서드 | GET |
| 경로 | /member/check/{id} |
| 인증 | 불필요 |
요청
GET /member/check/testuser HTTP/1.1
Host: api.glowb.comcurl "https://api.glowb.com/member/check/testuser"const response = await fetch(`/member/check/${userId}`);
const isDuplicate = await response.json();
if (isDuplicate) {
alert('이미 사용 중인 ID입니다.');
} else {
alert('사용 가능한 ID입니다.');
}Path Parameters
Prop
Type
응답
성공 응답 (200 OK)
true| 값 | 설명 |
|---|---|
true | ID가 이미 존재함 (사용 불가) |
false | ID 사용 가능 |