Webapi
Webapi
To develop web , mobile and ios applications we can use web api
To provide security , which means webapi will directly intercat with db and acts as
middleware.
Front end applications will not interact directly with the db
Extend app functionality
HTTP VERBS
Status code
status code are recieved from the server and they give info about responses
ex: 101 - its about information response -(An informational response indicates that
the request was received and understood)
200 - success
301 - redirection
404 - error
500 - internal server error
Iactionresult
Custom return types
If they specify Version 1 in the query string then it will execute Version 1 and if
they specify Version 2 then as expected Version 2 will execute.
ihostbuilder and webhost
middleware
what is logging?
It is the process of storing logs
Microsoft.extensions.logging
logging api and logging providers
logging providers two types
1. Built in
console,debug,eventsource,eventlog
2.Third Party
serilog,log4net,nlog,stcak driver
Iloggerfactory extension methods
Serilog conepts
-- loglevel
Trace (0),Debug(1),Information(2),warning(3),error(4),critical(5), none(6)