REST server yog dab tsi?
REST server yog dab tsi?

Video: REST server yog dab tsi?

Video: REST server yog dab tsi?
Video: 3 yam uas ua rau peb swb dab yog dab tsi tiag 2024, Hlis ntuj nqeg
Anonim

REST Server API. Kev Sawv Cev Hauv Xeev ( REST ) yog ib qho qauv ntawm software architecture rau kev faib tawm hypermedia systems xws li World Wide Web. REST -style architectures muaj cov neeg siv khoom ntawm ib sab thiab a server ntawm lwm yam.

Hais txog qhov no, REST API server yog dab tsi?

Ib lub vev xaib RESTful (tseem hu ua RESTful web API ) yog lub vev xaib kev pabcuam siv HTTP thiab cov ntsiab lus ntawm REST . Nws yog ib qho kev sau los ntawm cov peev txheej, nrog rau plaub lub ntsiab lus: lub hauv paus URI rau kev pabcuam hauv lub vev xaib, xws li https://example.com/resources/ Internet media hom ntawm cov ntaub ntawv txhawb nqa los ntawm lub vev xaib pabcuam.

Tsis tas li ntawd, so siv rau dab tsi? Kev Sawv Cev Hauv Xeev ( REST ) yog software architectural style uas txhais cov txheej txheem txwv kom ua siv rau tsim Web Services. Cov kev pabcuam hauv web uas ua raws li cov REST architectural style, hu ua RESTful Web cov kev pabcuam, muab kev sib cuam tshuam ntawm cov tshuab computer hauv Is Taws Nem.

Ib tug kuj yuav nug, qhov so sawv rau dab tsi?

Kev Sawv Cev Hauv Xeev

REST cov ntsiab cai yog dab tsi?

REST yog stateless. Qhov ntawd txhais tau hais tias kev sib txuas lus ntawm tus neeg siv khoom thiab lub server ib txwm muaj tag nrho cov ntaub ntawv xav tau los ua qhov kev thov. Yog tias nkag mus rau cov peev txheej xav tau kev lees paub, ces tus neeg siv yuav tsum tau lees paub nws tus kheej nrog txhua qhov kev thov. REST yog cacheable.

Pom zoo: