REST API Interview Questions (Advanced Level)

  Рет қаралды 73,248

Exponent

Exponent

Күн бұрын

Пікірлер: 45
@tryexponent
@tryexponent 10 ай бұрын
Don't leave your software engineering career path to chance. Make sure you're interview-ready with Exponent's software developer interview prep course: bit.ly/3Cd56T5
@Boringpenguin
@Boringpenguin 2 жыл бұрын
0:30 #1 What is the difference between PUT, POST and PATCH? 1:22 #2 What is a payload in the context of a REST API? 1:47 #3 What is a REST message? 2:11 #4 What are the core components of an HTTP request? 2:59 #5 What are the core components of an HTTP response? 3:49 #6 What is an idempotent method and why are they important? 4:32 #7 What is the difference between idempotent and safe HTTP methods? 4:51 #8 Explain caching in a RESTful architecture
@snavesinned
@snavesinned Жыл бұрын
For "advanced", I'd expect more from the question on the difference between PUT, PATCH, and POST. POST requests the server create a new resource and respond with its newly created URI. PUT and PATCH will update, or MAY create, a resource at a specific URI. The difference being PUT replaces (overwrites) the resource and PATCH simply updates specific properties. It's important to note that PUT is the only true idempotent action of the three. PATCH may be idempotent but not always. It's also important to note that on PUT and PATCH operations, if the resource doesn't exist, the server MAY create the resource, but doesn't have to. This just depends on whether the service requires it creates URIs via POST or is OK with UTIs being created by PUT and PATCH requests. If the latter, handlers of those requests should validate if all fields required to create a resource are present before it creates the resource should it not exist. Most importantly, API developers should stop treating PUT like a PATCH operation which seems like common practice because GET, POST, PUT, and DELETE operations are too commonly likened to CRUD operations without the explanation of the differences. HTTP requests are an operation on the resource at a URI, not the datasource. It's not a 1:1 CRUD pass-through to the datasource, especially since URIs represent more than data in a datasource.
@Hey__Luna__912
@Hey__Luna__912 Жыл бұрын
Thank you. It was really useful info to learn. Do you have any suggestions of some resources where one can learn more such in-depth info about REST-api ?
@huywarrior
@huywarrior Жыл бұрын
I really like your interpretation of the question "What is the difference between PUT and PATCH". It cleans, simplifies, and filters the gist! Repeat at your own discretion and memorize to reinforce the knowledge, in my opinion: Put: Overwrite all Patch: Change only necessary components and attributes
@khushishareef2909
@khushishareef2909 7 ай бұрын
Best practices 1. Supporting JSON data transfer 2. Using proper status codes 3. Using URI hierarchy to represent the relationship between resources 4. Using idempotent HTTP methods 5. Using caching 6. Incorporating security measures
@ArpithaIndira
@ArpithaIndira 4 ай бұрын
Thank you for answering these type questions…. I understand some people here in the comment section telling these are not advanced questions but people like me are still getting to know answers to these type of questions and they are useful..thank you..keeping making videos 🙏
@laponiec
@laponiec Жыл бұрын
Short and sweet, love the fromat of your videos and thank you all the effort you put into them.
@shrashetty8279
@shrashetty8279 Жыл бұрын
Awesome!! Precise defination. On point explanation
@TKGZONE
@TKGZONE 2 жыл бұрын
I wish I got these questions in an interview 😂
@suvrojyotibhuniya3524
@suvrojyotibhuniya3524 2 жыл бұрын
Thanks bro,you explained very efficiently,keep working...
@biancastefania184
@biancastefania184 Жыл бұрын
You are awesome! Keep up the great work💯
@dirktrash3455
@dirktrash3455 Жыл бұрын
Great video! I did have a question, though: how does caching work when RESTful APIs are supposed to be stateless? Doesn't that violate that principle?
@tryexponent
@tryexponent Жыл бұрын
Hey dirktrash3455! You are right in that RESTful APIs follow the statelessness principle, where the server doesn't store client-specific information between requests i.e. each request contains all necessary data. Caching, a performance optimization technique, stores and reuses previous responses. Therefore, caching does not violate the statelessness principle because the server's response itself is cached, not the server's state. Hope this helps!
@dirktrash3455
@dirktrash3455 Жыл бұрын
@@tryexponent That's very helpful, thanks!
@edwinrosales6322
@edwinrosales6322 Жыл бұрын
Great tips!
@matanbarlev968
@matanbarlev968 2 ай бұрын
I think you should also mention that PUT method must be idempotent, while POST method may be not idempotent.
@rasikasamith
@rasikasamith 6 ай бұрын
Thanks a lot. Super video.
@legostarwarszadzi
@legostarwarszadzi Жыл бұрын
Golden content thank you
@felipefreitas1498
@felipefreitas1498 2 жыл бұрын
Great video! Thanks!!!
@jayavishnuramsaravanaraj1876
@jayavishnuramsaravanaraj1876 2 жыл бұрын
Thanks for sharing the knowledge
@rnrnrkrk994
@rnrnrkrk994 4 ай бұрын
You said PUT is updating existing resource at 0:39, but in 1:00 you say PUT is replacing the entire resource vs PATCH. Seems contradicting
@kushalkamra3803
@kushalkamra3803 2 жыл бұрын
Awesome ❤
@johnybee5808
@johnybee5808 29 күн бұрын
Great!
@pedepatopimenta
@pedepatopimenta Жыл бұрын
Good stuff!
@Pablo-bl7nu
@Pablo-bl7nu Жыл бұрын
cool, thnx
@111rhishishranjan2
@111rhishishranjan2 Жыл бұрын
what is meta data at 5:10 ? can anyone explain it ??
@samirmahmudlu
@samirmahmudlu Жыл бұрын
Thank you
@ukaszkiepas57
@ukaszkiepas57 5 ай бұрын
thank you! :")
@judepope6196
@judepope6196 8 ай бұрын
love it
@shreyashachoudhary480
@shreyashachoudhary480 2 жыл бұрын
Epic!
@SethWilson
@SethWilson 2 жыл бұрын
Thanks :) good stuff.
@chaitanyakampara3944
@chaitanyakampara3944 6 ай бұрын
good rest api
@rushikeswararaopolaki3602
@rushikeswararaopolaki3602 Жыл бұрын
Good stuff
@wickylee4513
@wickylee4513 3 ай бұрын
@milance123456
@milance123456 2 жыл бұрын
Thats not really advanced
@Isomorphist
@Isomorphist 2 жыл бұрын
because REST APIS are relatively simple
@shenth27
@shenth27 Жыл бұрын
It's advanced for the author
@aaqibhamdule73
@aaqibhamdule73 Жыл бұрын
You should not do clickbait by saying Advanced Questions and just state plain basics.
@Nexatek
@Nexatek 6 ай бұрын
Exponent is fake. You say advanced and talk about what is payload and all of your mock interviews are crap with bs candidates who are amateurs..
@stickysteve14
@stickysteve14 Жыл бұрын
im assuming the first question is to make sure the resume wasnt a lie lmao
@mysterio7385
@mysterio7385 2 жыл бұрын
Good explanation, but this is not advanced level...
@aaqibhamdule73
@aaqibhamdule73 Жыл бұрын
u r right
@Nexatek
@Nexatek 6 ай бұрын
Exponent is fake. You say advanced and talk about what is payload and all of your mock interviews are crap with bs candidates who are amateurs..
@jscoding402
@jscoding402 11 ай бұрын
Thank you
The MOST Important Engineering Manager Skills?
18:42
Exponent
Рет қаралды 32 М.
REST API Interview Questions (Beginner Level)
7:07
Exponent
Рет қаралды 197 М.
One day.. 🙌
00:33
Celine Dept
Рет қаралды 52 МЛН
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
Thank you Santa
00:13
Nadir Show
Рет қаралды 44 МЛН
I ask this question to every Backend Engineer I interview
11:44
Hussein Nasser
Рет қаралды 391 М.
What is an API and how do you design it? 🗒️✅
15:26
Gaurav Sen
Рет қаралды 745 М.
Top 12 Tips For API Security
9:47
ByteByteGo
Рет қаралды 125 М.
System Design (TPM) Mock Interview: Twitter API
19:00
Exponent
Рет қаралды 125 М.
Rest API - Best Practices - Design
15:50
High-Performance Programming
Рет қаралды 113 М.
How to (and how not to) design REST APIs
14:28
CodeOpinion
Рет қаралды 58 М.
API vs. SDK: What's the difference?
9:21
IBM Technology
Рет қаралды 1,4 МЛН
What is a REST API?
9:12
IBM Technology
Рет қаралды 1,6 МЛН
Amazon System Design Interview: Design Parking Garage
29:59
Exponent
Рет қаралды 1,4 МЛН
One day.. 🙌
00:33
Celine Dept
Рет қаралды 52 МЛН