Skip to content

Instantly share code, notes, and snippets.

@graphicbeacon
Last active May 16, 2018 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graphicbeacon/376eb04dc4e02b3651e328acbe16a453 to your computer and use it in GitHub Desktop.
Save graphicbeacon/376eb04dc4e02b3651e328acbe16a453 to your computer and use it in GitHub Desktop.
Sample code for "Building RESTful Web APIs with Dart, Aqueduct and PostgreSQL (Part 2)" post on Medium (4)
import '../fave_reads.dart';
List books = [
{
'title': 'Head First Design Patterns',
'author': 'Eric Freeman',
'year': 2004
},
{
'title': 'Clean Code: A handbook of Agile Software Craftsmanship',
'author': 'Robert C. Martin',
'year': 2008
},
{
'title': 'Code Complete: A Practical Handbook of Software Construction',
'author': 'Steve McConnell',
'year': 2004
},
];
class BooksController extends HTTPController {...}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment