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;
    
    @RequestMapping(value="", method=RequestMethod.POST)
    public Member registerMember(@RequestBody Member member) {
        return memberService.registerMember(member);
    }

    @RequestMapping(value="", method=RequestMethod.GET)
    public List<Member> findMemberAll() {
        return memberService.findMemberAll();
    }

    @RequestMapping(value="/id/{id}", method=RequestMethod.DELETE)
    public void deleteMemberById(@PathVariable long id) {
        memberService.deleteMemberById(id);
    }

    @RequestMapping(value="/id/{id}", method=RequestMethod.GET)
    public Member findMemberById(@PathVariable long id) {
        return memberService.findMemberById(id);
    }
}

@@ -377,20 +377,462 @@
 ervice;%0A
+%0A
     
+/**%0A     *%0A     * @api %7Bpost%7D /member Register Member%0A     * @apiGroup Member%0A     * @apiParam (Member) %7Bjson%7D User-info for to register%0A     * @apiParamExample %7Bjson%7D Request-Example:%0A     * %7B%22email%22:%22arstarst@nate.com%22,%22password%22:%22qlalfqjsgh%22,%22fullName%22:%22Wonyoung Ju%22,%22nickname%22:%22nickname%22,%22job%22:%22programmer%22,%22age%22:22,%22gender%22:%22M%22,%22phone%22:%22010-1234-0173%22,%22tags%22:%5B%7B%22name%22:%22memberTest%22%5D%7D%0A     * @apiDescription %ED%9A%8C%EC%9B%90%EC%9D%98 %EC%A0%95%EB%B3%B4%EB%A5%BC %EB%B0%9B%EC%95%84%EC%84%9C %EB%93%B1%EB%A1%9D%ED%95%9C%EB%8B%A4(%ED%9A%8C%EC%9B%90%EA%B0%80%EC%9E%85)%0A     */
 %0A    @Re
@@ -996,32 +996,162 @@
 member);%0A    %7D%0A%0A
+    /**%0A     * @api %7Bget%7D /member Find all of member%0A     * @apiGroup Member%0A     * @apiDescription %EA%B0%80%EC%9E%85%EB%90%9C %EB%AA%A8%EB%93%A0 %EB%A9%A4%EB%B2%84%EC%9D%98 %EB%A6%AC%EC%8A%A4%ED%8A%B8%EB%A5%BC %EA%B0%80%EC%A0%B8%EC%98%A8%EB%8B%A4.%0A     */%0A
     @RequestMapp
@@ -1293,179 +1293,559 @@
     
-@RequestMapping(value=%22/id/%7Bid%7D%22, method=RequestMethod.DELETE)%0A    public void deleteMemberById(@PathVariable long id) %7B%0A        memberService.deleteMemberById(id);%0A    %7D%0A
+/**%0A     * @api %7Bdelete%7D /member/id/:id Delete Member By ID%0A     * @apiGroup Member%0A     * @apiParam (Member) %7Bnumber%7D %5BUser Id%5D%0A     * @apiDescription %EB%A9%A4%EB%B2%84%EC%9D%98 id(%EC%8B%9C%ED%80%80%EC%8A%A4)%EB%A5%BC %EB%B0%9B%EC%95%84%EC%84%9C %ED%95%B4%EB%8B%B9 %EB%A9%A4%EB%B2%84%EB%A5%BC %EC%82%AD%EC%A0%9C%ED%95%9C%EB%8B%A4.%0A     */%0A    @RequestMapping(value=%22/id/%7Bid%7D%22, method=RequestMethod.DELETE)%0A    public void deleteMemberById(@PathVariable long id) %7B%0A        memberService.deleteMemberById(id);%0A    %7D%0A%0A    /**%0A     * @api %7Bget%7D /member/id/:id Get Member Info%0A     * @apiGroup Member%0A     * @apiParam (Member) %7Bnumber%7D %5BUser Id%5D%0A     * @apiDescription %ED%95%B4%EB%8B%B9 id(%EC%8B%9C%ED%80%80%EC%8A%A4)%EB%A5%BC %EA%B0%80%EC%A7%84 %ED%9A%8C%EC%9B%90%EC%9D%98 %EC%A0%95%EB%B3%B4%EB%A5%BC %EA%B0%80%EC%A0%B8%EC%98%A8%EB%8B%A4.%0A     */
 %0A   

Write api document