Map<String, Object> parameter = Maps.newHashMap();
final Parameter param = new Parameter();
for (Annotation annotation : annotations) {
if (annotation instanceof ApiParam) {
ApiParam apiParam = (ApiParam) annotation;
parameter.put("name", apiParam.name());
parameter.put("description", apiParam.value());
parameter.put("required", apiParam.required());
param.setName(apiParam.name());
param.setDescription(apiParam.value());
param.setIsRequired(apiParam.required());
Type parameterClass = method.getGenericParameterTypes()[i];
if (parameterClass.equals(String.class)) {
parameter.put("type", "string");
} else if (parameterClass.equals(int.class) || parameterClass.equals(Integer.class)) {