Musiyano Pakati PUT uye PATCH Zvikumbiro

Ndeupi musiyano mukuru pakati PUT uye PATCH zvikumbiro, uye ndirini patinofanira kushandisa imwe pamusoro peimwe?

PUT uye PATCH zvirevo zveHTTP uye zvese zviri zviviri zvine chekuita nekuvandudza zviwanikwa.

Musiyano Mukuru Pakati PUT uye PATCH Zvikumbiro

Musiyano mukuru pakati pePUT nePATCH zvikumbiro zviri munzira iyo server inogadzirisa chinhu chakakomberedzwa kuti chigadzirise zviwanikwa zvinozivikanwa neChikumbiro-URI.

Mune PUT chikumbiro, chinhu chakakomberedzwa chinoonekwa seyakagadziridzwa vhezheni yesosi yakachengetwa pane Yekutanga server, uye mutengi ari kukumbira kuti vhezheni yakachengetwa ichinjwe.

Na PATCH, zvakadaro, chinhu chakakomberedzwa chine seti yemirayiridzo inotsanangura mashandisiro anoita dudziro parizvino kuseva Yekutanga kuti ibudise vhezheni itsva.

Zvakare, mumwe mutsauko ndewokuti kana iwe uchida kugadzirisa zviwanikwa ne PUT chikumbiro, iwe unofanirwa kutumira iyo yakazara inobhadhara sekukumbira nepo ne PATCH, iwe unongotumira ma parameter aunoda kugadzirisa.



Inoenderana:

Ngatitii tine chinyorwa chinobata zita rekutanga uye zita rekupedzisira remunhu.

Kana isu tichida kuchinja zita rekutanga tinobva tatumira PUT chikumbiro chekuvandudza

{ 'first': 'Michael', 'last': 'Angelo' }

Pano, kunyangwe isu tiri kungochinja zita rekutanga, ne PUT chikumbiro isu tinofanirwa kutumira ese ma paramita kutanga uye kwekupedzisira. Mune mamwe mazwi, zvinosungirwa kutumira ese kukosha zvakare, iwo mubhadharo wakazara.

Kana isu tichitumira PATCH chikumbiro, zvisinei, isu tinongotumira iyo data iyo yatiri kuda kugadzirisa. Mune mamwe mazwi, isu tinongotumira zita rekutanga kuti riwedzere, hapana chikonzero chekutumira zita rekupedzisira.

Neichi chikonzero, PATCH chikumbiro chinoda mashoma bandwidth.