taylonr / postman

MIT License
110 stars 237 forks source link

During tests of POST method, postman adds new post #29

Open wojtaszczyk opened 7 months ago

wojtaszczyk commented 7 months ago

(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?

taylonr commented 7 months ago

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: @.***>