Notes
  • Notes
  • JavaScript
    • URL processing
    • Numbers
  • Python
    • python random notes
    • Python Resources
  • Setup
    • Mac Setup
  • Command Line
    • Basics
    • Linux basics
    • Bash script
    • Create temp files
    • awk
    • sed
    • make
    • ssh
    • gzip
    • Command line tools
    • ffmpeg
    • at and crontab - scheduling commands
  • Web Developement
    • Chrome Dev Tools
    • HTML
    • Markdown
    • CSS
    • Rails
    • Hugo
    • REST APIs
  • Soft Skills
    • Listening Skills
    • Public Speaking
  • Containers
  • Career
    • Resume
    • Interview
    • Promotion
    • Keeping Track of Your Work
    • Decide What to Work On
  • Ergonomics
    • Work Env Setup
    • Pain Relieve
  • Digest / Writing Ideas
    • Books
      • Antifragile
      • Anti-Intellectualism in American Life 美国的反智传统
    • Economy / Society
    • How to spend your time
    • Life
    • Higher education
  • Misc
    • Regex
    • Don't Make Me Think
    • Microsoft Excel
    • AdTech 101
  • Resources
    • web
    • Vim
    • Tools
    • System Design
    • Design Pattern
    • Load Balancer
    • References
    • Hardware
    • Algorithm Resources
    • Command Line Resources
  • Git
    • Pro Git
  • Non-Tech
    • 化学科普 - 拿破仑的纽扣
    • 人生经验 - If I Knew Then
    • 哲学
      • Harvard - Justice
    • 宗教
      • Introduction to the New Testament History and Literature
      • 蔡志忠 - 漫画东方圣经
    • 人文
      • Open Yale Course - 心理学导论
  • Spark
  • VS Code
Powered by GitBook
On this page
  • Methods (Verbs)
  • Request
  • Response

Was this helpful?

  1. Web Developement

REST APIs

Methods (Verbs)

  • GET/POST/DELETE

  • PUT: to replace a resource with another one

  • PATCH: to modify a resource

  • But sometimes the API designer may choose to let PUT, PATCH, and POST have the same behavior

  • OPTIONS: returns all methods available in the end point

  • HEAD: returns just the head of the response

Request

Headers include Authorization, Content-Type (e.g. application/json), Cache-Control (e.g. no-cache), etc.

Response

HTTP response status code

Categories

Example

1xx

Information

rarely used

2xx

Success

200 OK

3xx

Redirection

301 Moved permanently

4xx

Client error

404 Not found

5xx

Server error

503 Service unavailable

PreviousHugoNextSoft Skills

Last updated 5 years ago

Was this helpful?