Deep Dive into REST API Design and Implementation Best Practices

  Рет қаралды 64,844

Software Developer Diaries

Software Developer Diaries

Күн бұрын

Пікірлер: 52
@shinyshark2247
@shinyshark2247 8 ай бұрын
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.
@jaredroder2842
@jaredroder2842 2 ай бұрын
Maybe add an endpoint? GET /api/collection/count
@ezwalduzumaki3161
@ezwalduzumaki3161 17 күн бұрын
@@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-y5y
@DebapriyaMukherjee-y5y 2 ай бұрын
This is the best video I have came across after wasting time in so many craps.
@abdulazeez.98
@abdulazeez.98 Жыл бұрын
Awesome video. It’s really hard to find videos with such clarity and details on youtube. The animations are top notch 👌
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries Жыл бұрын
Thanks a ton! I felt like the animations are a bit rusty, so need to improve those maybe :)
@collinskariuki7089
@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
@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
@SoftwareDeveloperDiaries Жыл бұрын
Thanks for the feedback :)
@cannabisanomaly
@cannabisanomaly 7 ай бұрын
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
@gregloin3658
@gregloin3658 19 күн бұрын
very synthetic, complete and rich. the explanations are of quality. thank you very much
@BABEENGINEER
@BABEENGINEER Жыл бұрын
This vid is so soothing and informative!
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries Жыл бұрын
Happy to hear you liked it! 🤓
@itsfoss5268
@itsfoss5268 10 ай бұрын
I have learnt alot in 12 minutes than I did in a whole academic year for my CS degree. Cheers mate 🎉
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 10 ай бұрын
That's a great compliment, thanks a lot! :)
@fb-gu2er
@fb-gu2er 8 ай бұрын
Then your college sucks
@erezbenkimon3899
@erezbenkimon3899 9 ай бұрын
very good content dude. I will create a notebook from this video for future reference. keep going , you earned my subscription :)
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 9 ай бұрын
Thanks mate! ☺️
@ExeeGamingYT
@ExeeGamingYT Жыл бұрын
Best video ever.!! Thank you brother❤
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries Жыл бұрын
My pleasure 🤗
@roopeshsingh3211
@roopeshsingh3211 Жыл бұрын
Got Very Solid understanding of Rest API 🙌😄
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries Жыл бұрын
Awesome! :)
@vmmoorthi
@vmmoorthi 7 ай бұрын
So helpful to understand the real world application architechture
@prerakhere
@prerakhere Жыл бұрын
Excellent. Thanks!
@abdelwahidbenzerrouk8271
@abdelwahidbenzerrouk8271 10 ай бұрын
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
@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
@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! :)
@mravacado1587
@mravacado1587 3 ай бұрын
Versions can also be specified in the header
@Other-stuff-sports-lm1ok
@Other-stuff-sports-lm1ok Жыл бұрын
great content! keep it going, you'll be the next big Tech youtuber
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries Жыл бұрын
Will do, thank you! 😊
@juststudying1019
@juststudying1019 Жыл бұрын
Earned a new subscriber, thanks.
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries Жыл бұрын
Happy to have you here! 😉
@josh45000
@josh45000 Жыл бұрын
This video is one of the best
@truechecker680
@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
@mariocortes2670 Жыл бұрын
Great explanation!
@SmartWizzard
@SmartWizzard Жыл бұрын
This is excellent video exceptionally done
@nihshrey
@nihshrey 7 ай бұрын
This video is brilliant.
@ricmorris9758
@ricmorris9758 16 күн бұрын
Query APIs and REST APIs are different things with different challenges and solutions.
@kennedymwenda3357
@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
@SoftwareDeveloperDiaries Жыл бұрын
What exactly do you mean by the query level? 🙂
@AnshulMarele-gbaa
@AnshulMarele-gbaa 2 ай бұрын
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
@javadmh7827
@javadmh7827 3 ай бұрын
Nice One 😍
@ogagaDotTech
@ogagaDotTech 4 ай бұрын
Excellent
@zartcolwing3218
@zartcolwing3218 17 күн бұрын
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.
@sidekick3rida
@sidekick3rida 8 ай бұрын
Thanks, I learned a lot. But-how-are-hyphens-more_readable_than_underscores? Subjective, I guess.
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 8 ай бұрын
Haha i guess so
@nchaganlal
@nchaganlal 7 ай бұрын
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.
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 7 ай бұрын
Thanks for the insight!
@supa1009
@supa1009 Жыл бұрын
there are also action based APIs not only resource based
@Christakxst
@Christakxst Жыл бұрын
These things, OData got them right !But somehow, it's not so widespread...
@gourabsarker9552
@gourabsarker9552 Жыл бұрын
Sir do you earn 100k euros a year as a software developer in Germany? Plz reply. Thanks a lot.
@cariyaputta
@cariyaputta Жыл бұрын
It's quite weird to directly ask stranger for their salary like this.
How does Caching on the Backend work? (System Design Fundamentals)
22:45
Software Developer Diaries
Рет қаралды 44 М.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 106 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 18 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 16 МЛН
Rest API - Best Practices - Design
15:50
High-Performance Programming
Рет қаралды 114 М.
REST API Interview Questions (Advanced Level)
6:19
Exponent
Рет қаралды 74 М.
Top 8 Best Practices for API Design #api #bestpractices #apidevelopment
15:23
SWE with Vivek Bharatha
Рет қаралды 6 М.
How to (and how not to) design REST APIs
14:28
CodeOpinion
Рет қаралды 58 М.
What is a REST API?
9:12
IBM Technology
Рет қаралды 1,6 МЛН
Top 7 Ways to 10x Your API Performance
6:05
ByteByteGo
Рет қаралды 348 М.
Idempotency in APIs: you should be aware of this!
7:31
Software Developer Diaries
Рет қаралды 16 М.
GraphQL vs REST: Which is Better for APIs?
7:31
IBM Technology
Рет қаралды 213 М.
20 System Design Concepts Explained in 10 Minutes
11:41
NeetCode
Рет қаралды 1,1 МЛН
The Right Way To Build REST APIs
10:07
Awesome
Рет қаралды 114 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 18 МЛН