REST Call with Flutter - Http methods

preview_player
Показать описание
In this detailed tutorial we will learn how to perform GET, POST, PUT and DELETE Http operations using Flutter.

All the methods are implemented with BaseClient so you can use across application for any functionality.

If you like my work

Git Source:

Join this channel to get access to perks:

Gears ========

#CodeX
Connect with me on social media:
Рекомендации по теме
Комментарии
Автор

Best explanation in YouTube ❤️
You made my day easier 💥

mageshkanna
Автор

Thanks. This is what i need for my project

BeaconofHopeNetwork
Автор

This is awesome. I'll be implenting this with the nodejs api I built

asondubuisi
Автор

hi, thank u so much for the tutorials, im new in flutter and this is perfect for me, i was working with java and api rest, i wanted a chanched, so thank u

giulianocapovilla
Автор

I honestly learned a lot of what i needed here
thank you. Thank you Codex

justbe_joe
Автор

Can you do a tutorial on how to use GraphQL with Flutter?

adolfusadams
Автор

finally i found a clear explanation for this! thanks
can you explain authentication/authorization by jwt token?

abdmo
Автор

Great Work Brother, Can you help me with an example how to use the data returned from post request in future builder.

dev.ibrahim
Автор

hello to solve the probleme where the get methode work but post and put does nt read this :
the problem is from the header, in the put and post you need the header atribute in the request core, .

you dont need the same as in the video since you probably don t have the autorisation nor the api_key as in the first declaration at 3:57 but you need the content type atribut in the header, so you header variable should look like the one at 13:31 if you follow the video you will see he have a problem too before he add it so basicly you need your header variable to be :
var _headers = {

'Content-Type': 'application/json',

};
again you can have api key autorisation and more stuff, but so it just work the presence of content type atribut with the value aplication/json (like the code juste above) is enough.
i hope this helped .

fetouhsadegh
Автор

You send api parameters
When u use
For using route dynamically

?

sale
Автор

I cannot print data like users[1].name. Is users not a list? What shall I do for reading data?

rolferikson
Автор

Can u make api integration using dio package

flutterdev
Автор

Sir, I have made my own api and it uses bearer token authentication how should I use it ...i am unable to make a request for the same

poetryiscodingdecoding
Автор

hello sir, can you please make a video on api handling architecture for large project.

kunalmanshani
Автор

Please explain more on headers it is important aspect

poetryiscodingdecoding
Автор

what is that api_key you have passed in headers?

sumanth
Автор

Hola, una consulta en el metodo get mi endpoint recibe un api_ke y ciertos parametros, como puedo agragarlo en la construccion del url como se hace con los headers y no agrgarselo al final de mi metodo despues del url. Saludos

lbarria
Автор

Please make a tutorial on graphQL with flutter

Vamp
Автор

make tutorial on retrofit + getx + api (GET, POST, PUT, DELETE)

jaiminkoshti
Автор

Hi Afzal sir,
i used the same API and try to CURD operations but while making the get req. is working fine, but when i going to do PUSH, PUT and DELETE it's thowing an error.

E/flutter (16462): Unhandled Exception: type '(dynamic) => User' is not a subtype of type '(String, dynamic) => MapEntry<dynamic, dynamic>' of 'transform'

I try to fix but i can't make it. so sir can you tell me what's going wrong here and used the same Model class as you.

jayisampelliwar