Professional Documents
Culture Documents
NET CORE
B u s i n e s s
C r e a ti v e
Bhrugen
Patel
www.dotnetmastery.com
WHAT IS AN API?
C r e a ti v e
“API IS AWESOME”
C r e a ti v e
Bhrugen
Patel
www.dotnetmastery.com
PREREQUISITES
C# (3-6months)
B u s i n e s s
QUESTIONS/ISSUES ?
Google it!
B u s i n e s s
Check Q&A
Topics Covered
API Fundamentals
B u s i n e s s
DTO’s in API
EF Core in API
C r e a ti v e
Dependency Injection
Repository Pattern
Deploying API
co. Company profile here Company profile here
B u s i n e s s
WHAT IS AN API?
C r e a ti v e
Request
Response
C r e a ti v e
Request
Response
CLIENT SERVER
Request
Response
C r e a ti v e
Request
Response
Request / Order
C r e a ti v e
Request / Order
C r e a ti v e
Request / Order
C r e a ti v e
API
C r e a ti v e
API
API
HTTP
OVERVIEW
Verb
Headers
Content
C r e a ti v e
Request
Client Server
POST
Content Length: 9
Magic API
C r e a ti v e
Request
Response
Client Server
Status code
Headers
Content
co. Company profile here Company profile here
HOW HTTP WORKS?
B u s i n e s s
POST
Content Length: 9
Magic API
C r e a ti v e
Request
Response
Client Server
201
Content Type: text
Magic API
co. Company profile here Company profile here
THE REQUEST OBJECT
HTTP Verbs / Actions
B u s i n e s s
verb
verb
content
verb
content
Status code
• 100-199: Informational
• 200-299: Success
headers • 200 – OK
• 201 – Created
C r e a ti v e
• 204 – No Content
• 300-399: Redirection
• 400-499: Client Errors
• 400 – Bad Request
• 404 – Not Found
content • 409 – Conflict
• 500-599: Server Errors
• 500 – Internal Server Error
Status code
• More headers…
content
content
headers headers
C r e a ti v e
Content content
What is
C r e a ti v e
Issues: