Created
February 24, 2014 13:19
-
-
Save triskell/9188290 to your computer and use it in GitHub Desktop.
vibe.d : REST API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@rootPath("/books") | |
class Books { | |
void get() { ... } // GET /books/ | |
void getNew() { ... } // GET /books/new | |
void get(string id) { ... } // GET /books/:id | |
void create() { ... } // POST /books/ | |
void set(string id) { ... } // POST /books/:id | |
void erase(string id) { ... } // DELETE /books/:id | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment