public void postParseMethodAnnotation()

in oas-generator/oas-generator-servicecomb/src/main/java/org/apache/servicecomb/toolkit/generator/parser/ServicecombPojoParser.java [46:66]


  public void postParseMethodAnnotation(OperationContext context) {
    super.postParseMethodAnnotation(context);

    Method currentMethod = context.getMethod();

    if (StringUtils.isEmpty(context.getHttpMethod())) {
      context.setHttpMethod(HttpMethod.POST.toString());
    }

    if (StringUtils.isEmpty(context.getOperationId())) {
      context.setOperationId(currentMethod.getName());
    }

    if (StringUtils.isEmpty(context.getPath())) {
      context.setPath(correctPath(currentMethod.getName()));
    }

    if (context.getApiResponses() == null || context.getApiResponses().size() == 0) {
      context.correctResponse(context.getApiResponses());
    }
  }