Search This Blog

Wednesday, June 9, 2021

Q36-Q40

Q36. What is the difference between the Accept header and the Content-Type header?
Q37. What is Domain Driven Architecture? 
Q38. 
Q39. 
Q40. 

===============================================================================
Q36. What are the differences between accept header and content-type header in sense of content negotiation?

Answer:
In Web APIs, both Accept and Content-Type are HTTP headers, but they serve different purposes:
1. Accept Header
Accept: application/json
means “I want the response in JSON.”

2. Content-Type Header
Describes the format of the actual body being sent.
Content-Type: application/json
means “The body I’m sending you is JSON.”
 
===============================================================================
Q37. What is Domain Driven Architecture? 

Answer:
  • Most moderns ORM follow domain driven architecture like entity framework. 
  • They have domain classes which are actually POCO (plain old C# object) classes which are entity classes 
  • We usually use Repository pattern with Domain Driven architecture. 


===============================================================================
Q38. 

===============================================================================
Q39. 


===============================================================================

===============================================================================

No comments:

Post a Comment