Module vibe.http.rest
Automatic REST interface and client code generation facilities.
Functions
Name | Description |
---|---|
adjustMethodStyle | Adjusts the naming convention for a given function name to the specified style. |
extractHttpMethodAndName | Uses given function symbol to determine what HTTP method and what URL path should be used to access it in REST API. |
fromRestString | |
generateModuleImports | For a given interface, finds all user-defined types used in its method signatures and generates list of static imports with modules they originate from. |
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 ny "get", "query" or similar prefixes, they are filtered out. |
path | User Defined Attribute interface to force specific URL path n REST interface for function in question. Path attribute is relative though, not absolute. |
registerRestInterface | Generates registers a REST interface and connects it the the given instance . |
Classes
Name | Description |
---|---|
RestInterfaceClient | Implements the given interface by forwarding all public methods to a REST server. |
Enums
Name | Description |
---|---|
MethodStyle | Determines the naming convention of an identifier. |
Authors
Sönke Ludwig, Михаил Страшун
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.