Could you please expand on the uri naming section for real world scenarios.. i would like to know how to name apis for non crud operation ie what would your name your api that is used to upload or download a file, send out a notification or even login, signup, reset password for a user (as according to rest naming scheme /users/login isnt right as login is an action). This is something I see being missed by a lot of tutorials.
I don't want to upset you, but these are all CRUD operations)
ปีที่แล้ว +2
It's been a while since your comment, but basically login, signin up, uploading a file could be described as different operations login (POST): You request your credentials to be processed on the server and as a response you get authorization credentials signup (POST): you send your data to register/create a new user besides that, it's not a good practice to send credentials, passwords, usernames as URI parameters given that those could be sniffed by some middle man upload a file (POST): api/files download a file (GET): api/files/{fileId] notifications: - global notification for all users POST: api/notifications - notifications for a given user: PUT: api/notifications/users/{userId} - get notifications GET: api/notifications (based on the logged user you give back their notifications) - reset password is a request to get something: usually as a POST, you send some data to be checked and used to get you a recovery pass or a recovery token or sth.
I've never seen a so well made video about APIs, and I watch a LOT of coding related content! Congrats and thanks bro this one is a gem.
Great content. Straight to the point. :)
If you don't mind me asking, what software do you use for your animations and texts?
I love the content I just wished it was louder hehe. Thx.
Thank you so much for this. This video is very informative, straight to the point and so well done
Very useful and quite understandable. Very good quality. Thank you!
6:40 why path parameter is better than query parameter?
Could you please expand on the uri naming section for real world scenarios.. i would like to know how to name apis for non crud operation ie what would your name your api that is used to upload or download a file, send out a notification or even login, signup, reset password for a user (as according to rest naming scheme /users/login isnt right as login is an action). This is something I see being missed by a lot of tutorials.
I don't want to upset you, but these are all CRUD operations)
It's been a while since your comment, but basically login, signin up, uploading a file could be described as different operations
login (POST): You request your credentials to be processed on the server and as a response you get authorization credentials
signup (POST): you send your data to register/create a new user
besides that, it's not a good practice to send credentials, passwords, usernames as URI parameters given that those could be sniffed by some middle man
upload a file (POST): api/files
download a file (GET): api/files/{fileId]
notifications:
- global notification for all users POST: api/notifications
- notifications for a given user: PUT: api/notifications/users/{userId}
- get notifications GET: api/notifications (based on the logged user you give back their notifications)
- reset password is a request to get something: usually as a POST, you send some data to be checked and used to get you a recovery pass or a recovery token or sth.
Wonderful explanation. ❣️
Great video!
Where do you make your slides?
Very nicely explained, thanks a lot!
Good stuff! Congrats and thank you
Nice video. Like few nowadays short and to the point
6:29 works only for nouns with a different plural spelling
Amazing explanation !!!
Your videos are very informative and awesome
Great Video. Thank you for your effort.
Great video has always. Can you design a core banking application? mainly how transfers, deposit and withdrawers work, for large scale bank app
Helpful video, subbed!
Awesome channel
father order 🤣🤣
good video btw
great video, thank you!!!
Great content
Excellent 😍
Nice video
Your videos are instrestring. How do you thing about Search Engine?
pls create new content your video is good
Nice
awsome
Why do we need all those methods these days?
comeback pls goddddddddddddddddddddddddddddddddddd
I will still use POST instead of GET when the "read" query is that complex: REST is so dumb.
Good video
comeback pls goddddddddddddddddddddddddddddddddddd