This is a simple android app with basic function like crud and login - register
with Model-View-Presenter Peresentation Pattern
url :
https://resep-mau.herokuapp.com/api/login [POST]
https://resep-mau.herokuapp.com/api/register [POST]
https://resep-mau.herokuapp.com/api/post [GET]
https://resep-mau.herokuapp.com/api/post [POST]
https://resep-mau.herokuapp.com/api/post/{id} [GET]
https://resep-mau.herokuapp.com/api/post/{id} [PUT]
https://resep-mau.herokuapp.com/api/post/{id} [DELETE]
You can always see my sample at this project
header:
Authorization : Bearer
Im using retrofit library for flutter. I dont know why @PUT method not work
when im using @FormUrlEncoded().
So, i change it and send parameters as json. :)
YOU DONT NEED TO WRITE CODE WITH XX.G.DART
file with g.dart is generated automtically with syntax:
flutter pub run build_runner build
for more please visit retrofit flutter page.
Here are some sample images