Cov txheej txheem:

Kuv yuav xa ntawv nrog Postman li cas?
Kuv yuav xa ntawv nrog Postman li cas?

Video: Kuv yuav xa ntawv nrog Postman li cas?

Video: Kuv yuav xa ntawv nrog Postman li cas?
Video: Me koj txiv ntshe yog txoj hmoo 9/17/2017 2024, Kaum ib hlis
Anonim

5 Teb

  1. Qhib Postman .
  2. Nyem Headers khawm thiab nkag mus rau Cov Ntsiab Lus Hom raws li header thiab daim ntawv thov / json hauv tus nqi.
  3. Xaiv POST los ntawm dropdown ib sab ntawm lub thawv ntawv URL.
  4. Xaiv cov khoom nyoos los ntawm cov nyees khawm muaj hauv qab lub thawv ntawv URL.
  5. Xaiv JSON los ntawm cov nram qab no dropdown.

Ib yam li ntawd, koj tuaj yeem nug, Kuv yuav xa tus neeg xa ntawv xa mus rau JSON li cas?

Yuav ua li cas tshaj tawm JSON cov ntaub ntawv hauv Postman -REST Client Chrome

  1. Thawj hom URL ntawm API.
  2. Hloov hom hom rau POST.
  3. Hauv seem paramter nyem rau ntawm "raw" tab thiab xaiv hom ntawv raws li "JSON" thiab ntxiv koj json hauv cov ntaub ntawv muab.
  4. Nyem rau ntawm "Headers" (txoj cai kaum hauv kab URL) & ntxiv "Cov ntsiab lus-hom" raws li header thiab "application/json; charset = UTF-8" raws li tus nqi.

Ib yam li ntawd, dab tsi yog params hauv Postman? Thov Tsis muaj yog ib feem ntawm qhov URL uas yog siv los xa cov ntaub ntawv ntxiv mus rau Server.

Ib yam li ntawd, nws raug nug, siv Postman yog dab tsi?

Postman yog lub cuab yeej muaj zog rau kev ua haujlwm sib koom ua ke nrog koj API. Nws tso cai rau kev sim rov ua dua, txhim khu kev qha uas tuaj yeem siv tau thiab siv ntau qhov chaw thiab suav nrog cov cuab yeej muaj txiaj ntsig rau cov ntaub ntawv txuas ntxiv thiab simulating li cas tus neeg siv yuav cuam tshuam nrog lub kaw lus.

Tsis tuaj yeem tau txais cov lus teb rau tus neeg xa ntawv?

Yog koj tau ib " Tsis tuaj yeem tau txais cov lus teb "message los ntawm Postman haiv apps thaum xa koj qhov kev thov, qhib Postman Console (Saib > Qhia Postman Console), rov xa daim ntawv thov thiab kos rau ib yam yuam kev log hauv lub console.

Pom zoo: