You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read the manual but I can't figure out if it's possible.
Imagine we have: POST /jedis with a body of name=obiwan POST /jedis with a body of name=darthmaul
I want the first one to return 200 Success but the second one to return 400 Bad Request.
From what I read in the documentation, I do not know how to write two files with the same name (but different content).
I am guessing jedis_post.json is the name of the first file, but what about the second one?
If I name the routes differently, I managed to get a 200 and a 400, but the idea here is I'm trying to have twice the same request but with different body; and from that body return success or error.
The text was updated successfully, but these errors were encountered:
I read the manual but I can't figure out if it's possible.
Imagine we have:
POST /jedis
with a body ofname=obiwan
POST /jedis
with a body ofname=darthmaul
I want the first one to return 200 Success but the second one to return 400 Bad Request.
From what I read in the documentation, I do not know how to write two files with the same name (but different content).
I am guessing
jedis_post.json
is the name of the first file, but what about the second one?If I name the routes differently, I managed to get a 200 and a 400, but the idea here is I'm trying to have twice the same request but with different body; and from that body return success or error.
The text was updated successfully, but these errors were encountered: