Skip to content

How to do a PUT/POST with content type as text/plain? #18

Description

@sandeepnagra

I tried something like:

Scenario: Try to set keep data value under database settings with response code 200
Given I send "text/plain" and accept JSON
When I send a PUT request to "http://hostname:8080/settings/databaseSettings/dataRetention" with:
| 90 |
Then the response status should be "200"

But it fails. I have always used JSON request body, this is the first REST API which needs plain text and I am trying to figure out how to do it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions