package com.goree.api.controller;

import com.goree.api.domain.Member;
import com.goree.api.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/member")
public class MemberController {
    @Autowired
    private MemberService memberService;

    /**
     *
     * @api {post} /member Register Member
     * @apiGroup Member
     * @apiParam (Member) {json} User-info for to register
     * @apiParamExample {json} Request-Example:
     * {"email":"arstarst@nate.com","password":"qlalfqjsgh","fullName":"Wonyoung Ju","nickname":"nickname","job":"programmer","age":22,"gender":"M","phone":"010-1234-0173","tags":[{"name":"memberTest"]}
     * @apiDescription 회원의 정보를 받아서 등록한다(회원가입)
     */
    @RequestMapping(value="", method=RequestMethod.POST)
    public Member registerMember(@RequestBody Member member) {
        return memberService.registerMember(member);
    }

    /**
     * @api {get} /member Find all of member
     * @apiGroup Member
     * @apiDescription 가입된 모든 멤버의 리스트를 가져온다.
     */
    @RequestMapping(value="", method=RequestMethod.GET)
    public List<Member> findMemberAll() {
        return memberService.findMemberAll();
    }

    /**
     * @api {delete} /member/id/:id Delete Member By ID
     * @apiGroup Member
     * @apiParam (Member) {number} [User Id]
     * @apiDescription 멤버의 id(시퀀스)를 받아서 해당 멤버를 삭제한다.
     */
    @RequestMapping(value="/id/{id}", method=RequestMethod.DELETE)
    public void deleteMemberById(@PathVariable long id) {
        memberService.deleteMemberById(id);
    }

    /**
     * @api {get} /member/id/:id Get Member Info
     * @apiGroup Member
     * @apiParam (Member) {number} [User Id]
     * @apiDescription 해당 id(시퀀스)를 가진 회원의 정보를 가져온다.
     */
    @RequestMapping(value="/id/{id}", method=RequestMethod.GET)
    public Member findMemberById(@PathVariable long id) {
        return memberService.findMemberById(id);
    }
}

@@ -428,32 +428,64 @@
 Register Member%0A
+     * @apiName Register Member%0A
      * @apiGroup
@@ -484,32 +484,32 @@
 apiGroup Member%0A
-
      * @apiParam
@@ -1085,24 +1085,59 @@
 l of member%0A
+     * @apiName Find all of member%0A
      * @apiG
@@ -1416,16 +1416,52 @@
 r By ID%0A
+     * @apiName Delete Member By ID%0A
      * @
@@ -1758,32 +1758,32 @@
 %0A    %7D%0A%0A    /**%0A
-
      * @api %7Bget
@@ -1815,16 +1815,48 @@
 er Info%0A
+     * @apiName Get Member Info%0A
      * @

Set a api name