question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Supporting Graph.RBAC scenario with fragment nextLink

See original GitHub issue

Split out from https://github.com/Azure/autorest/issues/1232 so that it’s easier to track what needs to get done. For more context, you can look through that entire thread. We want to make sure this scenario doesn’t break in all languages, so the request is for each language to implement the

There is a TestServer Swagger operation that verifies the Graph.RBAC paging scenario:

The TestServer implementation of these operations is here:

Here’s the C# test that verifies this scenario: https://github.com/Azure/autorest/blob/2a25d885a15aa0dfb4a73f00c9b1b8e4ad79e85b/src/generator/AutoRest.CSharp.Azure.Tests/AcceptanceTests.cs#L457

This is the standardized flow for handling x-ms-pageable:

  1. If operationName is used, skip creating a Next() page method.
  2. The operation specified in operationName should follow the normal method logic
  3. Start with the base url
  4. Concat the operation path (e.g. {tenantID}/{nextLink} in the case of Graph.RBAC)
  5. Perform path replacements
    • This includes replacing {nextLink} with the nextLink method argument
  6. Append any query parameters defined for the Next() operation.
    • This needs to take into account that query parameters might already exist in the url, since nextLink could have query parameters.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
amarzaverycommented, Jun 20, 2017

fragmented nextLink always worked in node.js. Infact other sdks were inspired from the node.js solution.

1reaction
mcardososcommented, Jun 15, 2017

Hohohoho, yes, it is supported

Read more comments on GitHub >

github_iconTop Results From Across the Web

Formatting returned paging URLs #1232 - Azure/autorest
The guidance for Azure REST APIs is for nextLink to be a complete URL, but Graph.RBAC only returns a fragment: directoryObjects/$/Microsoft.
Read more >
Test your fragments - Android Developers
This method supports the following states as arguments: CREATED , STARTED , RESUMED , and DESTROYED . This method simulates a situation where...
Read more >
Exploring the Android Fragment Scenario component - Medium
This allows us to launch our fragment in isolation and focus on what we are testing. This will either require using an external...
Read more >
FortiSIEM 5.2.5 Online Help (PDF) - Amazon AWS
Elasticsearch Support for Regex. 422. FortiSIEM Event Categories and Handling. 423. FortiSIEM Charts and Views.
Read more >
Email Address: debarpita.cs@gmail.com ORCID of the author
Figure 1: Simple BPMN model of a Kiosk-based Healthcare Scenario in India ... of fragment P) is being added, 'Next Link' part of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found