Here is one example we are working with, a basic JSON string
{"readStatus": {"markedAsRead": false}}
By the time it comes for us to send the request, we've already
serialized the object to a json string.
When I add this object instead of the JSON string, It does appear to
serialize correctly when viewed in the parameter collection:
{application/json={ "readStatus": { "markedAsRead": false }}}
Any suggestions on how do get you the RAW resquest? Unfortunately the
REST service is behind HTTPS.
Here is the API:
Response Read Status
/users/{userId}/courses/{courseId}/threadeddiscussions/{threadId}/
topics/{topicId}/responses/{responseId}/readStatus.{format}
/users/{userId}/courses/{courseId}/threadeddiscussions/{threadId}/
topics/{topicId}/responses/{responseId}/readStatus
/me/courses/{courseId}/threadeddiscussions/{threadId}/topics/{topicId}/
responses/{responseId}/readStatus.{format}
/me/courses/{courseId}/threadeddiscussions/{threadId}/topics/{topicId}/
responses/{responseId}/readStatusGet / Set the read status of a
specific response for a given user
{userId} - A numeric value that represents the ID of the user to get /
set the response read status for
{courseId} - A numeric value that represents the ID of the course of
which the threaded discussion exists within
{threadId} - A numeric value that represents the ID of the threaded
discussion of which the topic exists within
{topicId} - A numeric value that represents the ID of the topic of
which the response exists within
{responseId} - A numeric value that represents the ID of the response
to get / set the read status for
{format} - OPTIONAL. The format of the response. Valid values are
"json" or "xml". Defaults to "json" if the format is not specified.
Supported HTTP Verbs: GET, PUT*
*Note: In order to support PUT methods on older browsers, POST is also
supported as long as one of the following headers is specified on the
request:
X-HTTP-Method: PUTor
X-HTTP-Method-Override: PUT
Example Transactions
Request:
GET
http://m-api.ecollege.com/courses/123456/threadeddiscussions/5241/topics/153/responses/204/readStatusRequest
Body: N/A
Response:
HTTP/1.1 200 OKResponse Body:
{
"readStatus":{
"markedAsRead":false
}
}Request:
PUT
http://m-api.ecollege.com/courses/123456/threadeddiscussions/5241/topics/153/responses/204/readStatusRequest
Body:
{"readStatus": {"markedAsRead": true}}Response:
HTTP/1.1 204 No ContentResponse Body: N/A