vibe.d beta banner
get vibe.d
0.7.31

Module vibe.web.rest

Automatic REST interface and client code generation facilities.

Functions

NameDescription
generateRestJSClient(output, settings)Generates JavaScript code to access a REST interface from the browser.
registerRestInterface(router, instance, settings)Registers a REST interface and connects it the the given instance.
serveRestJSClient(settings)Returns a HTTP handler delegate that serves a JavaScript REST client.

Classes

NameDescription
RestInterfaceClientImplements the given interface by forwarding all public methods to a REST server.
RestInterfaceSettingsEncapsulates settings used to customize the generated REST interface.

Structs

NameDescription
CollectionModels REST collection interfaces using natural D syntax.

Aliases

NameTypeDescription
afterAllows processing the return value of a handler method and the request/response objects.
beforeAllows processing the server request/response before the handler method is called.
Authors

Sönke Ludwig, Михаил Страшун

Copyright

© 2012-2016 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.