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.
I love the content I just wished it was louder hehe. Thx.
Great content. Straight to the point. :)
If you don't mind me asking, what software do you use for your animations and texts?
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.
Thank you so much for this. This video is very informative, straight to the point and so well done
Great video!
Where do you make your slides?
Wonderful explanation. ❣️
Very useful and quite understandable. Very good quality. Thank you!
Good stuff! Congrats and thank you
Very nicely explained, thanks a lot!
Nice video. Like few nowadays short and to the point
Amazing explanation !!!
6:40 why path parameter is better than query parameter?
Awesome channel
Your videos are very informative and awesome
Great Video. Thank you for your effort.
Great content
Great video has always. Can you design a core banking application? mainly how transfers, deposit and withdrawers work, for large scale bank app
father order 🤣🤣
good video btw
Helpful video, subbed!
great video, thank you!!!
Nice video
awsome
Nice
Excellent 😍
pls create new content your video is good
6:29 works only for nouns with a different plural spelling
Your videos are instrestring. How do you thing about Search Engine?
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