Function method
User Defined Attribute interface to force specific HTTP method
in REST interface
for function in question. Usual URL generation rules are still applied so if there
are any "get", "query" or similar prefixes, they are filtered out.
Prototype
vibe.web.common.MethodAttribute method( HTTPMethod data );
Example
interface IAPI { // Will be "POST /info" instead of default "GET /info" @method(HTTPMethod.POST) getInfo(); }
Authors
Sönke Ludwig, Михаил Страшун
Copyright
© 2012-2013 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.