Git Product home page Git Product logo

Comments (4)

loosebazooka avatar loosebazooka commented on August 15, 2024

So I asked the endpoints team about this :

When the method name starts with get, the default httpMethod is GET. I don't believe you're allowed request bodies in GET methods. The best suggestion would have been for them to explicitly set POST in the annotation.

There does not exist a validation for this yet. But I'll file a bug with the endpoints team.

from gradle-appengine-plugin.

brinkkemper avatar brinkkemper commented on August 15, 2024

He loosebazooka

Great to see this has been noticed. I must say that this line: "When the method name starts with get, the default httpMethod is GET", is a pretty weird assumption that should not even exist. Imho I would remove this assumption rather then add a validation.

Anyway, I'am glad my time wasn't a total waste :)
I'll find some other catchy name for my apiMethods in the meanwhile.

from gradle-appengine-plugin.

loosebazooka avatar loosebazooka commented on August 15, 2024

You can explicitly specify the type of http request you want and name the
method whatever you want.

https://developers.google.com/appengine/docs/java/endpoints/annotations#apimethod_method-scoped_annotations
On May 29, 2014 6:39 PM, "brinkkemper" [email protected] wrote:

He loosebazooka

Great to see this has been noticed. I must say that this line: "When the
method name starts with get, the default httpMethod is GET"
, is a pretty
weird assumption that should not even exist. Imho I would remove this
assumption rather then add a validation.

Anyway, I'am glad my time wasn't a total waste :)
I'll find some other catchy name for my apiMethods in the meanwhile.


Reply to this email directly or view it on GitHub
#96 (comment)
.

from gradle-appengine-plugin.

brinkkemper avatar brinkkemper commented on August 15, 2024

Great! Thanks
Op 30 mei 2014 00:49 schreef "Appu Goundan" [email protected]:

You can explicitly specify the type of http request you want and name the
method whatever you want.

https://developers.google.com/appengine/docs/java/endpoints/annotations#apimethod_method-scoped_annotations
On May 29, 2014 6:39 PM, "brinkkemper" [email protected] wrote:

He loosebazooka

Great to see this has been noticed. I must say that this line: "When
the
method name starts with get, the default httpMethod is GET"
, is a
pretty
weird assumption that should not even exist. Imho I would remove this
assumption rather then add a validation.

Anyway, I'am glad my time wasn't a total waste :)
I'll find some other catchy name for my apiMethods in the meanwhile.


Reply to this email directly or view it on GitHub
<
https://github.com/GoogleCloudPlatform/gradle-appengine-plugin/issues/96#issuecomment-44594865>

.


Reply to this email directly or view it on GitHubhttps://github.com//issues/96#issuecomment-44595670
.

from gradle-appengine-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.