REST Flashcards
What is an API?
Application Programming Interface
There exists Wep API, Browser API and Server API.
What is REST and RESTful services?
Representational State Transfer protocol
SOAP
Simple Object Access protocol
SOAP vs REST
HTTP
Hypertext Transfer Protocol is an application-layer protocol designed for the transmission of hypermedia documents, such as HTML and image resources between web browsers and web servers.
JWT
Jason Web Token
What is the JWT structure?
Explain the HTTP request lifecycle.
ASP.NET Core pipeline
HTTP Context
How do you secure an ASP.NET Core app?
By using filters which can be applied like attributes.
authentication vs. authorization
How do FILTERS work?
Filters run as their own pipeline.
Sequence of a filter:
- Authorization
- Resource
- Action
- Exception
- Result
builders vs. services vs. middleware OH, MY!
model binders
If there are two get methods in a controller, how do we specify which one to call?
attribute routing (syntax example)
external API vs open API vs internal API
CORS
Cross-Origin Resource Sharing allows restricted resources on a web page to be requested from another domain.
CORS is an HTTP-header based mechanism that allows a server to indicate any origins (domain, scheme, or port) other than its own from which a browser should permit loading resources. CORS also relies on a mechanism by which browsers make a “preflight” request to the server hosting the cross-origin resource, in order to check that the server will permit the actual request. In that preflight, the browser sends headers that indicate the HTTP method and headers that will be used in the actual request.