Member-only story

REST APIs and HTTP methods

Suragch
3 min readNov 27, 2019

--

Supplemental article for course on Server Side Dart as a Flutter backend

Photo by Danielle MacInnes on Unsplash

I was going to create a course on Udemy about Server Side Dart as a backend for Flutter apps. I finished over half but then I got busy with other things. Rather than let it go to waist I’m putting it on YouTube. If there is enough feedback and interest, that may encourage me to finish the series.

This article is Lesson 4 in the series. You can start at Lesson 1 here.

Lesson 4

Before we go further building our server, I want to go over some important concepts. If you are already familiar with REST APIs and the HTTP protocol, you can skip ahead.

REST APIs

REST stands for Representational State Transfer. It is an architectural style in wide use today and we will also use it for our Dart server. REST has a number of guiding principles, but there are two that are especially important for us to understand for our purposes:

  1. Client-Server: The client and the server stay separate. It doesn’t matter what operating system they are running because they communicate through an agreed upon set of rules. Those rules are the API expressed in terms of the HTTP protocol.
  2. Stateless: With a REST API the server doesn’t store the state of it’s clients. That…

--

--

Suragch
Suragch

Written by Suragch

Flutter and Dart developer. Twitter: @suragch1, Email: suragch@suragch.dev

No responses yet