Comments (6)
Other good sample:
https://github.com/PowerShell/PowerShell/blob/master/demos/rest/rest.ps1
from confluenceps.
Relating to SupportsPaging
, I knocked up some PoC code to ensure I've understood how that should be implemented... https://codereview.stackexchange.com/questions/164252/powershell-supports-paging
We may also be able to make use of some of the logic from the Invoke-DummyRestMethod
when writing related tests/mocks.
from confluenceps.
If the function's called without making use of the paging parameters; or if the page size is greater than the web service's supported page size, is there any preference on behaviour?
i.e. With SupportsPaging
, the calling code needs to be aware of the page size, and to implement logic to loop through page by page if you want all results. If we want all results returned by a single call to the method, we want the function's internal code to loop through those pages. Would we still want to specify a page size for the function (i.e. which gets passed to the web service's limit
parameter), or where we want all results would we not make use of the function's SupportsPaging
, even though behind the scenes we are making paged calls to the web service?
from confluenceps.
If no stepsize is provided, use the systems default or leave the limit out.
If no paging parameter is provided, SupportPaging
will still be active but not used.
from confluenceps.
- We will return everything unless the
SupportPaging
parameters restrict it. - The
StepSize
will only influence the amount of results per call. Which is useful for slow connection and for| Select -First 10
. - In order for the pipe to be able to terminate the calls, we are not allowed to collect the results in an array before writing to output.
from confluenceps.
my first attempt:
lipkau@157832d
brianbunke/ConfluencePS@develop...lipkau:feature/CmdLetPaging
from confluenceps.
Related Issues (20)
- Content Overflow when resizing window width. CSS bug HOT 3
- Is it possible to get the last modification time for an Attachment?
- Get-ConfluenceSpace does not return labels, and does not take label as input parameter HOT 2
- Set-Confluence failing with "com.atlassian.confluence.api.service.exceptions.BadRequestException: Content body cannot be converted to new editor"
- ConvertTo-Space : Cannot create object of type "ConfluencePS.Space". Cannot convert value "29290657992" to type "System.Int32". Error: "Value was either too large or too small for an Int32." HOT 2
- Ability to set minorEdit on page change
- Build scripts spoils global gitconfig file
- Large PageID results System.Int32 overflow HOT 3
- Module Version Mismatch in PowerShell Gallery HOT 1
- Issue: Get-ConfluencePage with multiple Labels
- Cmdlets Using PSCredential Objects HOT 1
- Get-ConfluenceAttachment doesnt work anymore cause PageID is bigger than Int32 HOT 1
- Set-ConfluenceAttachment on Powershell 7.1.5
- Set-ConfluenceInfo does not persist when called in a function
- Function override causes build failure
- The builds fail due to server-2014 decommissioning
- Need instructions for authenticating to Confluence Cloud HOT 2
- ConvertTo-ConfluenceStorageFormat cmdlet gives error on Ubuntu
- Set-Attachment HOT 2
- Get-ConfluenceAttachment throws error for archived pages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from confluenceps.