Skip to main content

API With Input Parameters

API with Input Parameters

If the created API accepts parameter input, the parameters can be passed into the URL to be a GET param query. For example, if the SQL query used to create the API is

  SELECT *
FROM nama_tabel
WHERE kolom=:masukan

API menerima masukan parameter bernama “masukan”. Pemanggilan API dapat dilakukan dengan menambahkan query param dengan awalan “xin_” menjadi “xin_masukan”, seperti berikut:

  {{BASE_URL}}/bigenvelope/public/api/id/{{API_ID}}?xin_masukan={{nilai masukan}}

Was This Article Helpfull?

Yes
No
© 2021 by Bigbox, Inc. All rights reserved.Last modified : December 27, 2021

Was This Article Helpfull?

Yes
No