Skip to content
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

Support rest-api with JSON content #248

Closed
Seddryck opened this issue Feb 20, 2017 · 2 comments
Closed

Support rest-api with JSON content #248

Seddryck opened this issue Feb 20, 2017 · 2 comments

Comments

@Seddryck
Copy link
Owner

Seddryck commented Feb 20, 2017

We should be able to query a rest-api. At the beginning, it should support: GET, HTTP or HTTPS, Json, Anonymous/Basic-Http\Ntml (including current user) and Oauth2 (once access token is received).

<system-under-test>
  <result-set>
    <json-source>
      <rest base-address="https://api.github.com/">
        <authentication>
          <anonymous />
        </authentication>
        <header name="user-agent">nbi</header>
        <path>user/{user}</path>
        <segment name="user">Seddryck</segment>
        <parameter name="order-by">fullName</parameter>
        <parameter name="max_results">10<parameter>
      </rest>
      <json-path>
         ...
      </json-path>
    <json-source>
  </result-set>
<system-under-test>

The preceding rest call should be translated to the following url:
https://api.github.com/users/Seddryck?max_result=10&order-by=fullName

The rest element is returning a string that will be interpreted by the json-path to produce a result-set.

@Seddryck Seddryck added this to the v1.15 milestone Feb 20, 2017
@Seddryck Seddryck changed the title Support rest-api returning a JSON Support rest-api with JSON content Feb 20, 2017
Seddryck pushed a commit that referenced this issue Mar 28, 2017
# Conflicts:
#	NBi.Core/NBi.Core.csproj
#	NBi.Testing/NBi.Testing.csproj
@Seddryck Seddryck modified the milestones: v1.16, v1.15 Aug 24, 2017
@Seddryck Seddryck modified the milestones: v1.16, v1.17 Oct 7, 2017
@Seddryck Seddryck modified the milestones: v1.18, v1.19 Jan 22, 2018
@Seddryck Seddryck modified the milestones: v1.19, v2.0 Aug 28, 2018
@Seddryck Seddryck modified the milestones: v2.0, v1.22 Oct 29, 2019
@Seddryck
Copy link
Owner Author

Restarted the implementation from scratch.

@Seddryck
Copy link
Owner Author

Seddryck commented Nov 3, 2019

Beta available at https://ci.appveyor.com/project/Seddryck/nbi/builds/28578027/artifacts or 1.22.0-beta0015.

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

No branches or pull requests

1 participant