ridwanskaterock / cicool

Cicool is a multifunctional application that is used to facilitate your work in creating a system, CMS, E-Comerce and others
20 stars 13 forks source link

Can not post api via Postman #543

Open thisistee opened 1 year ago

thisistee commented 1 year ago

I have created API with API builder. then I test with rest tools via the web browser. the result for get, post, put, delete is work. then I try with POSTMAN api Tools.

Postman with GET method is work. but Postman with POST method can not work.

POSTMAN Post like this. set X-Api-Key and X-Token in Header. then set field name and value in Params

The result from post man show like this. { "status": false, "message": "Column 'test_name' cannot be null", "error": { "classname": "mysqli_sql_exception" } }

Can you show how to set parameter in POSTMAN for POST method? Do you have example format for JSON body or params?

Thank for your support.

thisistee commented 1 year ago

It's look like the value is null when passing data via POSTMAN. this may cause I'm not sure about body data format.

suggest please.

ridwanskaterock commented 1 year ago

Hi make sure in postman you filled on form-data [image: image.png]

On Sat, Feb 18, 2023 at 12:52 AM thisistee @.***> wrote:

It's look like the value is null when passing data via POSTMAN. this may cause I'm not sure about body data format.

suggest please.

— Reply to this email directly, view it on GitHub https://github.com/ridwanskaterock/cicool/issues/543#issuecomment-1435492918, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGXJLOV4IUSQYACMVLPRQ3WYBPTLANCNFSM6AAAAAAU7TTHZ4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

Muhamad Ridwan Software Engineer | Cicool Engine m: +62 812 1310 9812 e: @.*** Bogor West Java - Indonesia www.go-moment.com http://go-moment.com [image: facebook icon] [image: twitter icon] [image: youtube icon] [image: linkedin icon]

thisistee commented 1 year ago

That's cool. It's work. Cause I pass data via params then change to form-data in body and it's work. Thanks