Skip to content

Conversation

@carpnick
Copy link

@carpnick carpnick commented Sep 3, 2015

Needed the ability to call POST with the key attached to the end.

The Use case:
Imagine having a testset we wanted to add a test case to. The way to do this:
image

Endpoint: = testset/TESTSET_NUMBER//testcases/add
// Defining the JSON PayLoad
DynamicJsonObject newTestCaseRef = new DynamicJsonObject();
DynamicJsonObject newTCField = new DynamicJsonObject();
newTCField["_ref"] = TestCaseRef;

RestAPI.Post(Endpoint, newTestCaseRef);

This does not work with current version of 3.0.1. It comes back as unauthorized due to I believe the missing key. The DoPost method is not public, so we cannot use it directly. This seemed like the most logical change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant