개요

user CRUD와 관련된 api 명세

PATH

{api 경로(메인페이지에서 명시)}/user/{api name}

createUser

methods: POST

1. requests

{ // json
	"user_id":string, // 사용자 ID
	"password":string, // 사용자 비밀번호
	"nick":string // 사용자 닉네임
}

2. response

{
	"msg": "create user success",
	"status": 201,
	"result": ""
}

3. error response

<하나라도 빈 값을 request했을 경우>
{
	"msg": "check your values"
	"status": 400
	"result": ""
}

<이미 유저가 있는 경우>
{
	"msg": "user ID already exists",
	"status": 409,
	"result": ""
}

<Exception이 발생했을 경우>
{
	"msg": "user create failed"
	"status": 500
	"result": ""
}

4. example

<request>
[POST]IP:PORT/api/v1/user/createUser
{ // json
	"user_id": "test1"
	"password": "1q2w3e4r!"
	"nick": "조성윤 대리"
}

<response>
-