Sends HTTP request to specific URL with raw body from PyString.
Step pattern
When (?:I |we )?send a ([A-Z]+) request to "([^"]+)" with body:Examples
Example #1
When I send a POST request to "/users" with body:
"""
{
"name": "John Doe",
"email": "john@example.com"
}
"""Example #2
When we send a POST request to "/posts" with body:
"""
{
"title": "Hello",
"body": "World",
"userId": 1
}
"""Example #3
When I send a PUT request to "/users/1" with body:
"""
{
"name": "Updated",
"org": "Webship.co"
}
"""Example #4
When we send a POST request to "/contacts" with body:
"""
{
"email": "info@un.org",
"subscribe": true
}
"""