A warning for what is said at 5:43 - pagination does help performance by reducing the amount of records that are retrieved. If, however, you decide you want to include a property such as 'TotalItems' and use a count for that, be mindful of how you retrieve this count. In some scenarios, you might still be retrieving all the records you didn't want to retrieve.
@jaredroder28422 ай бұрын
Maybe add an endpoint? GET /api/collection/count
@ezwalduzumaki316117 күн бұрын
@@jaredroder2842 No, you would denormalize count. Another thing is using cursor based pagination, not offset. Offset means -> After X, give me 10. X being a number. You would still have to go through all the items. Better is cursor based like stripe. Explicitly saying after post_id, give me 10. Just need to make sure it's sorted.
@DebapriyaMukherjee-y5y2 ай бұрын
This is the best video I have came across after wasting time in so many craps.
@abdulazeez.98 Жыл бұрын
Awesome video. It’s really hard to find videos with such clarity and details on youtube. The animations are top notch 👌
@SoftwareDeveloperDiaries Жыл бұрын
Thanks a ton! I felt like the animations are a bit rusty, so need to improve those maybe :)
@collinskariuki7089 Жыл бұрын
I am currently learning about APIs and your video has been immensely helpful. Thank you so much for creating this content. I subscribed right away
@gunnarliljas8459 Жыл бұрын
Wouldn't call it it a deep dive. More a wide dive. But, still, very good, An excellent introduction that could be starter for any API journey.
@SoftwareDeveloperDiaries Жыл бұрын
Thanks for the feedback :)
@cannabisanomaly7 ай бұрын
Just to clarify for anyone, at 5:58 the +author and -datePublished means that the author category will be sorted in an ascending order and datePublished will be sorted in a descending order
@gregloin365819 күн бұрын
very synthetic, complete and rich. the explanations are of quality. thank you very much
@BABEENGINEER Жыл бұрын
This vid is so soothing and informative!
@SoftwareDeveloperDiaries Жыл бұрын
Happy to hear you liked it! 🤓
@itsfoss526810 ай бұрын
I have learnt alot in 12 minutes than I did in a whole academic year for my CS degree. Cheers mate 🎉
@SoftwareDeveloperDiaries10 ай бұрын
That's a great compliment, thanks a lot! :)
@fb-gu2er8 ай бұрын
Then your college sucks
@erezbenkimon38999 ай бұрын
very good content dude. I will create a notebook from this video for future reference. keep going , you earned my subscription :)
@SoftwareDeveloperDiaries9 ай бұрын
Thanks mate! ☺️
@ExeeGamingYT Жыл бұрын
Best video ever.!! Thank you brother❤
@SoftwareDeveloperDiaries Жыл бұрын
My pleasure 🤗
@roopeshsingh3211 Жыл бұрын
Got Very Solid understanding of Rest API 🙌😄
@SoftwareDeveloperDiaries Жыл бұрын
Awesome! :)
@vmmoorthi7 ай бұрын
So helpful to understand the real world application architechture
@prerakhere Жыл бұрын
Excellent. Thanks!
@abdelwahidbenzerrouk827110 ай бұрын
Good video, I would love to see how to deal with API Naming when you have some actions that are not representative by HTTP methods.
@SmartWizzard Жыл бұрын
From 7:05 it's getting confusing not because of words but lack of examples, can you please provide another video with examples that give details for all these requests, header responses, and response messages.
@SoftwareDeveloperDiaries Жыл бұрын
Hey I won't be able to make a follow-up on that most likely, but I'd suggest checking out the page I linked in the description, you'll find all the needed examples there! :)
@mravacado15873 ай бұрын
Versions can also be specified in the header
@Other-stuff-sports-lm1ok Жыл бұрын
great content! keep it going, you'll be the next big Tech youtuber
@SoftwareDeveloperDiaries Жыл бұрын
Will do, thank you! 😊
@juststudying1019 Жыл бұрын
Earned a new subscriber, thanks.
@SoftwareDeveloperDiaries Жыл бұрын
Happy to have you here! 😉
@josh45000 Жыл бұрын
This video is one of the best
@truechecker680Ай бұрын
I have question. Let's say, we have /api/towns endpoint and we have multiple PATCH actions on this endpoint like enable-town (change param isEnabled to true) etc... How can u operate on just one endpoint, when there are multiple PATCH actions? For this reason, I was using /api/towns/{id}/enable, /api/towns/{id}/change-tax-value but dunno if its best practice.
@mariocortes2670 Жыл бұрын
Great explanation!
@SmartWizzard Жыл бұрын
This is excellent video exceptionally done
@nihshrey7 ай бұрын
This video is brilliant.
@ricmorris975816 күн бұрын
Query APIs and REST APIs are different things with different challenges and solutions.
@kennedymwenda3357 Жыл бұрын
Would it not be the best to sort and order at the query level for API that you consume yourself e.g for a First Party SPA? Also please if can do a video on HATEOAS.
@SoftwareDeveloperDiaries Жыл бұрын
What exactly do you mean by the query level? 🙂
@AnshulMarele-gbaa2 ай бұрын
Hi, I have my Excel file which is updated through an odbc connection. But how can I sync/connect that Excel data into Google Sheets that could be updated automatically in periodic intervals. Any Solution? Thanks
@javadmh78273 ай бұрын
Nice One 😍
@ogagaDotTech4 ай бұрын
Excellent
@zartcolwing321817 күн бұрын
I disagree with what it is said 6:42 about the status code of idempotent verbs possibly being different depending on the situation on the server. IMHO, Idempotant verbs (GET, PUT DELETE) must always return the same code (in case of success) no matter if the operation was effectively performed or not otherwise the request is not idempotant anymore. For example, a DELETE should always return 204 no content, even when the resource did not exist to begin with (unless a serious error occurred while attempting to delete an existing resource - like a lock or a lack of permission). This decision is motivated by the fact that the effect of a DELETE is to remove a given resource. If the resource did not exist to begin with, the contract has been fulfilled, and this should not be passed on as an error. Returning a 404 not found, is a terrible idea, that forces the client to interpret two totally different return codes as success.
@sidekick3rida8 ай бұрын
Thanks, I learned a lot. But-how-are-hyphens-more_readable_than_underscores? Subjective, I guess.
@SoftwareDeveloperDiaries8 ай бұрын
Haha i guess so
@nchaganlal7 ай бұрын
Adding version to endpoints and resources on their address/query strings leads to a brittle implementation.. always better to have API version and resource version on the HTTP headers. This will enable a better developer experience and less coupling between your microservices.
@SoftwareDeveloperDiaries7 ай бұрын
Thanks for the insight!
@supa1009 Жыл бұрын
there are also action based APIs not only resource based
@Christakxst Жыл бұрын
These things, OData got them right !But somehow, it's not so widespread...
@gourabsarker9552 Жыл бұрын
Sir do you earn 100k euros a year as a software developer in Germany? Plz reply. Thanks a lot.
@cariyaputta Жыл бұрын
It's quite weird to directly ask stranger for their salary like this.