API (REST)

Deleting data

DELETE requests

try { RestOptions options = RestOptions( path: '/todo' ); RestOperation restOperation = Amplify.API.delete( restOptions: options ); RestResponse response = await restOperation.response print('DELETE call succeeded'); print(new String.fromCharCodes(response.data)); } on ApiException catch (e) { print('DELETE call failed: $e'); }

try { RestOptions options = RestOptions( path: '/todo' ); RestOperation restOperation = Amplify.API.delete( restOptions: options ); RestResponse response = await restOperation.response print('DELETE call succeeded'); print(new String.fromCharCodes(response.data)); } on ApiException catch (e) { print('DELETE call failed: $e'); }
Previous Page
previous

Updating data

next

Define authorization rules

Next Page
Discord Logo
Amplify open source, documentation and community are supported by Amazon Web Services © 2020, Amazon Web Services, Inc. and its affiliates. All rights reserved. View the site terms and privacy policy.
    Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC.