API: Basic 101
How it work
A. Request
B. Receive
C. ResponseAda client and server side
Client : Our mobile, Web
Server : ResponseUsually return as JSON : Because of light weight and standardize
HTTP Methods
A. GET
B. POST
C. PUT : Update, but usually use for upload File
D. PATCH : Update few or part of resource
E. DELETEHeaders : Store all metadata including authenticate key
Metdadata : Is some information about the Application, for example info about image
Authentication
A. Basic Auth : Login Auth
B. API Token : Login Page
C. API Key : Api to Api
D. Oauth 2.0 : Authentication and Authorization
$ php artisan serve --port { Port Number }
Comments
Post a Comment