Dart / Flutter and plone restapi

I have made a few Mobile apps with Flutter ( https://flutter.dev ) this year, so now I am thinking about trying to use Plone as a backend.

So, just in case someone has done similar stuff before:

Dos anyone have examples of Dart (programming language) / Plone integration ?

I am new to Plone Restapi, but I have found that this works:

final http.Response response = await http.post(
  headers: <String, String>{
	'Accept': 'application/json',
	'Content-Type': 'application/json',
  body: jsonEncode(
	<String, String>{
	  'login': username,
	  'password': password,

And returns the token

 var myToken = json.decode(response.body)['token'];

And I can add a document with:

final http.Response xresponse = await http.post(
    headers: <String, String>{
      'Authorization': 'Bearer $myToken',
      'Accept': 'application/json,',
       'Content-Type': 'application/json'
    body: jsonEncode(
      <String, String>{"@type": "Document", "title": "My Document"},

If I try to search the site,


Gives me message": "Resource not found: https://mysite.no/@search",

Am I missing something obvious?

As documented here:
the @search endpoint works with GET requests.

Thanks. (so hard to see when it is right in front of your eyes :slight_smile: )