postman icon indicating copy to clipboard operation
postman copied to clipboard

During tests of POST method, postman adds new post

Open wojtaszczyk opened this issue 1 year ago • 1 comments

(Im searching 201 status) If I add ID of the post earlier, there is Error occured during testing "Error: Insert failed, duplicate id" - status code 500 If I do not add ID of post earlier, there is response 201 - Created, but also during test, Postman adds new POST. - status code 201

Is it standard? can I turn it off somehow?

wojtaszczyk avatar Nov 27 '23 12:11 wojtaszczyk

I'm not sure I completely understand the question. The first case sounds like there's a bug in the POST code in that it should never be trying to insert the ID. POST should create a new entity every single time, which is what it's doing with the 201.

On Mon, Nov 27, 2023 at 6:16 AM wojtaszczyk @.***> wrote:

(Im searching 201 status) If I add ID of the post earlier, there is Error occured during testing "Error: Insert failed, duplicate id" - status code 500 If I do not add ID of post earlier, there is response 201 - Created, but also during test, Postman adds new POST. - status code 201

Is it standard? can I turn it off somehow?

— Reply to this email directly, view it on GitHub https://github.com/taylonr/postman/issues/29, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHCVEZ67WU7KYMPHSCQ67LYGR777AVCNFSM6AAAAAA735W6O6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYTEMJUG4YTAOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

taylonr avatar Nov 27 '23 16:11 taylonr