API: Basic 101


  1. How it work
    A. Request
    B. Receive
    C. Response

  2. Ada client and server side
    Client : Our mobile, Web
    Server : Response

  3. Usually return as JSON : Because of light weight and standardize

  4. HTTP Methods
    A. GET
    B. POST
    C. PUT : Update, but usually use for upload File
    D. PATCH : Update few or part of resource
    E. DELETE

  5. Headers : Store all metadata including authenticate key

  6. Metdadata : Is some information about the Application, for example info about image

  7. Authentication
    A. Basic Auth : Login Auth
    B. API Token : Login Page
    C. API Key : Api to Api
    D. Oauth 2.0 : Authentication and Authorization

Command line to serve in other port
$ php artisan serve --port { Port Number }

Comments

Popular posts from this blog

Create Slack application

Tips testing local untuk programmer 📌

Get list of controller in Codeigniter