In today's package of the week we will learn an easy way to build RESTful web apis with shelf_router package. This provides a request router for the shelf library and it matches a request to handler functions using router pattern matches. We will go through the basics then build an api for managing a collection of films.
=== Contents of this video ===
00:00 Intro
00:07 What is shelf_router?
00:54 Create a Router and Implement first endpoint
03:42 Define Router Path Variables
06:05 Load Films data and Define Films endpoint
08:46 Implement Films search request handler
11:26 Implement POST request handler
13:30 Implement DELETE request handler
15:40 Mount a Router object
20:29 Outro
Please leave us your feedback in the comments, and let us know what you would like us to demonstrate next! You can reach out in the comments below or on Twitter using #Flutter #Dartlang #Automation #Cli
Like, Subscribe and Hit the Bell 🔔 if you enjoyed this video 😍
Get the source code → https://github.com/graphicbeacon/shel...
Example with CORS enabled → https://gist.github.com/graphicbeacon...
Get the package → https://pub.dev/packages/shelf_router
Get the crawl package → https://pub.dev/packages/crawl
Get started with Dart course → https://bit.ly/getstartedwithdart
Dart docs → https://dart.dev
Subscribe to the channel → http://bit.ly/2P2N1jC
Read More Dart Tutorials → https://creativebracket.com
Buy me a coffee → https://ko-fi.com/creativebracket
LET'S CONNECT
---
Twitter → / creativ_bracket
Support the channel → / creativebracket
Watch video Build RESTful Web APIs with Shelf_router (Dart Package of the Week #10) online without registration, duration hours minute second in high quality. This video was added by user Creative Bracket • Dart and Flutter Tutorials 02 November 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 12,30 once and liked it 33 people.