The Back End
Sample code for this chapter can be found in the “your_first_dart_app” branch of https://github.com/eee-c/dart-comics. The back end is written in Dart and requires a few Dart packages to be installed with the Dart pub packagers. Instructions are contained in the project’s README.
Being REST-like, the application should support the following:
-
GET /comics (return a list of comic books)
-
GET /comics/42 (return a single comic book)
-
PUT /comics/42 (update a comic book entry)
-
POST /comics (create a new comic book in the collection)
-
DELETE /comics/42 (delete a comic book)
We won’t worry too much about the details of the back end beyond that.
Get Dart 1 for Everyone now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.