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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.3.175