Building Dart APIs with Google Cloud Run

Learn how to build backend applications using Dart and Google Cloud Run. By Alhassan Kamil.

5 (3) · 1 Review

Download materials
Save for later
Share
You are currently viewing page 5 of 5 of this article. Click here to view the first page.

Accessing Your Dart REST API

After deployment, gcloud displays a Service URL on the command line. Use that URL to send requests to the server. For example, to register a user:

curl -X POST -d '{"email": "newuser@example.com", "password": "pass1234"}'  https://mnote-l5z2wfy3ia-ew.a.run.app/v1/users/register

Replace https://mnote-l5z2wfy3ia-ew.a.run.app with the service URL gcloud displayed.

Note: You may want to delete the project after testing to avoid incuring costs. See Removing your test project to do so.

Where to Go From Here

You can download the complete project using the Download Materials button at the top or bottom of this tutorial.

You developed a good REST API using Dart in this tutorial. But you can improve it further by adding more features and security.

For further reading on Dart backend app development, you might want to try these:

Do you have any questions, suggestions or improvements you made? Let us know in the comments section below.