package org.binwang.bard.example.simple;

import org.binwang.bard.basic.marker.Doc;
import org.binwang.bard.basic.marker.Required;
import org.binwang.bard.core.Handler;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

@Produces("application/json")
public class SimpleHandler extends Handler {

    @GET
    @Path("/add")
    @Doc("Get a user by id")
    public int getUser(
        @QueryParam("a") @Required int a,
        @QueryParam("b") @Required int b) {
        return a + b;
    }

}

@@ -390,24 +390,23 @@
 oc(%22
-Get a user by id
+Add two numbers
 %22)%0A 
@@ -427,32 +427,57 @@
 getUser(%0A       
+ @Doc(%22The first number%22)
  @QueryParam(%22a%22
@@ -502,16 +502,42 @@
 %0A       
+ @Doc(%22The second number%22)
  @QueryP

update doc for example simple