darter 0.0.1-beta2 darter: ^0.0.1-beta2 copied to clipboard
Simple and Efficient framework for creating RESTful APIs in Dart.
library beer;
import 'package:darter/darter.dart';
@API(path: 'beers')
class BeerAPI {
@GET()
List get() {
return ["Beer 1", "Beer 2"];
}
}
main() {
new DarterServer()
..addApi(new BeerAPI())
..start();
}