blob: 088af68a417242be9af3454af5d9fc2cfd18a0c5 [file] [log] [blame]
package {{apiPackage}};
import static org.springframework.http.MediaType.*;
import java.util.List;
import java.util.Map;
import java.io.File;
{{#imports}}import {{import}};
{{/imports}}
import org.apache.servicecomb.provider.pojo.RpcSchema;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;
@RpcSchema(schemaId = "{{#camelcase}}{{classname}}{{/camelcase}}")
{{#operations}}
public class {{classname}} {
{{#operation}}
public {{>returnTypes}} {{operationId}}({{#allParams}}{{>libraries/POJO/queryParams}}{{>libraries/POJO/pathParams}}{{>libraries/POJO/headerParams}}{{>libraries/POJO/bodyParams}}{{>libraries/POJO/formParams}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) {
// do something
return null;
}
{{/operation}}
}
{{/operations}}