API Flashcards
What is web API
Application Programming Interface, provides interaction between software application, for example iphone and android and web site
Advantages Web API y WCF
The intercommunication between platforms, the standard use of http verbs like get, post, put, delete, for all crud operations, is open source.
What is rest and restful
Rest stands for Representational State transfer is a set of guidelines which helps in creating a system where applications can easily communicate with each other.
Restful is a systema applying rest guidelines
REST Guidelines
Separation of client and server
Stateless The server will not store anything
Uniform Interfaces
Cacheable
Layered system
HTTP verbs
Get Obtain information about a resource
POST Create a new resource
PUT Update a resource
DELETE Delete a resource
API key Authentication
In API Key authentication the API owner will share an API key with the users and this key will authenticate the users of the API (token)
What is token based authentication
This authentication is a 4 step process
1 The client sent the credentials of user
2 The server authenticate using that credentials and generates the access token
3 The application uses th token in the next request until the token expires.
4 If the access token is expired. then the client application can request for a new access token by using refresh token.
What is OAuth
OAuth is a standard for creating token based authentication and authorization
What is JWT Authentication
JWT Authentication is a token base authentication where JWT is a token format
What are the parts of JWT token
Header (algorithm, type)
PayLoad (subject, name, admin)