vibe.d beta banner
get vibe.d
0.8.4

Asynchronous I/O that doesn’t get in your way, written in D

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
RestInterfaceClient Implements the given interface by forwarding all public methods to a REST server.
RestInterfaceSettings Encapsulates settings used to customize the generated REST interface.

Structs

NameDescription
Collection Models REST collection interfaces using natural D syntax.

Aliases

NameTypeDescription
after Allows processing the return value of a handler method and the request/response objects.
before Allows 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.