This Project is created with the idea How to use Wordpres API as a Backend for the Flutter APP.
- Create Model for Posts
- Visualize Posts
- Create Plugin for Custom Endpoints/Routes
- Create Model for Pages
-
Create Model for Media - Create Model for Users
- Show Media in Posts
- Login/Register Users
- Created Posts
- Update Posts
- Delete Posts
- Create Documentation of how this project was created
For the next versions is necesary install the Custom Plugin, because I'm use custom endpoints for consume the API. This plugin is very basic and of course is not perfect but I created with my little bit experience in PHP and I'm very happy with the result.
- 1º Download the plugin for Gist
- 2º Go to your folder htdocs\wp-content\plugins inside in your Wordpress
- 3º Create a folder for contain the plugin for example wl-test
- 4º Copy inside this folder the file wl-api.php
- 5º Go to dashboard > Plugins > Installed Plugins > Custom Api > Activate
- 6º Done ^_^
Now you can use the custom Routes/endpoints for consume the data for example posts. Be carefull if you use this plugin in productions because if you need to ovewrite or changes the file, you needed desactivate first before to changes.
- CookBook: Spanish - Obtener datos desde internet
- CookBook: English - Fetch data from the Internet
- DOC: Serializar JSON usando Auto Librerias
- Medium: Working with APIs in Flutter
- Medium: Trabajando con APIs en FLutter
- Medium: Parseando JSON en Flutter
- Get Images in pages -> ^(src=\")+(png|jpg|gif)