Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 240 Bytes

File metadata and controls

12 lines (9 loc) · 240 Bytes

PATCH vs PUT

PUT

  • Poslal som celý článok (id, title, body, userId)
  • Zmenilo všetky polia

PATCH

  • Poslal som len title
  • Zmenil sa len title, ostatné ostalo

Záver

PUT prepisuje všetko. PATCH mení len to, čo pošlem.