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.
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.