cloudendpoints / endpoints-java

A Java framework for building RESTful APIs on Google App Engine
Apache License 2.0
32 stars 35 forks source link

API name restrictions not enforced by framework v2 #72

Open clementdenis opened 7 years ago

clementdenis commented 7 years ago

With the legacy framework, the API class below will generate the error "Invalid api name 'WithLeadingUpperCase'. The api name must match '[a-z]+[A-Za-z0-9]*'"

@Api(name = "WithLeadingUpperCase", version = "v1")
public class ApiNameNotEnforced {
    public void myMethod() {    }
}

The new framework does not enforce this restriction anymore. I don't know if there's still valid reason for keeping it or not.