Services page in UI requires http request body to be JSON
Description
Release Notes
None
duplicates
Activity
Show:
Ali Anwar July 27, 2015 at 8:37 PM
Duplicate
Pinned fields
Click on the next to a field label to start pinning.
Created July 27, 2015 at 8:37 PM
Updated July 14, 2017 at 12:25 AM
Resolved April 20, 2017 at 7:11 AM
The page of the CDAP UI from which a user can make a request to user services allows a POST/PUT body.
However, there is the restriction that the text typed into the input box for the request body must be of type JSON.
However, user services can be written in a way to also expect non-JSON content type; for example, a string such as 'abc'.
It is perfectly fine to have an http request's body to be non-JSON.
Furthermore, the UI requests that the strings in the be quoted with double quotes; single quotes will not make the submit button green/clickable.