Skip to content

Enable calling Post using a Secured URI #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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