Strapi v4.1.7 and Flutter v2.10.4 | How to Build CRUD Application Using

System Information
  • Strapi Version: 4.1.5
  • Operating System: win 10
  • Database: sqllite
  • Node Version: 16.14.2
  • NPM Version: 8.5.1
  • Yarn Version: -

Please explain a simple example of CRUD operations, because after updating the new flutter (v2.10) and Strapi (v4.1.7) , I did not find resources that explain this at all, whether in English or Arabic, All existing Resources are old and explain to old versions , and I no longer have the ability to make successful communication between them in these four operations because of this update, which led to a change in the format of the codes used for it
plz help me :innocent: :cry:
and thank you

1 Like

Hello,

I understand your frustration with the lack of updated resources for CRUD operations with the latest Flutter and Strapi versions. Upgrades can indeed change the way things work.

To help you get started, here’s a simplified example of CRUD operations using Flutter and Strapi:

  1. Create (POST):
    To add a new item to your Strapi database, you can use Flutter’s HTTP package to make a POST request to your Strapi API endpoint. Ensure your API request body matches your Strapi model schema.

  2. Read (GET):
    Retrieve data from Strapi by making a GET request to the API endpoint. You can fetch a list of items or a specific item as needed.

  3. Update (PUT/PATCH):
    To modify existing data, use PUT or PATCH requests to the relevant API endpoint. PUT typically updates the entire resource, while PATCH updates specific fields.

  4. Delete (DELETE):
    For removing data, send a DELETE request with the item’s ID to the API endpoint.

Regarding your specific code challenges, it would be helpful if you could share some of the code snippets or error messages you’re encountering. That way, the community can provide more targeted assistance.

If you need expert help with Node.js or any other part of your project, you might consider hiring Node.js developers. You can find skilled developers at Cleveroad: https://www.cleveroad.com/hire-nodejs-developers/.

Best of luck with your Flutter and Strapi project, and I hope this information helps you move forward! :blush: