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

Get root pages #63

Open
Morhpeuss opened this issue Feb 27, 2023 · 3 comments
Open

Get root pages #63

Morhpeuss opened this issue Feb 27, 2023 · 3 comments

Comments

@Morhpeuss
Copy link

I want to get pages hierarchy in space. Root pages/page first with the children.

I am able to get children of the page, but how could I get the root pages?

Thanks.
Josef

@Morhpeuss
Copy link
Author

I found the problem.

The right way is to use "confluenceClient.Space.GetContentsAsync(this.spaceKey)" but You need to add the query parameter "depth", regarding documentation https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space/#api-wiki-rest-api-space-spacekey-content-type-get

How could I add the query parameter?

@Lakritzator
Copy link
Member

Lakritzator commented Mar 6, 2023

Currently there is no way to specify the depth, I made this library with a "I/we will add it when it's needed" policy, and not trying to support everything if it's not needed. This request aligns with #62, where the start and limit are not supplied and aren't supported in the method call.

It makes sense to add support to something like query parameters with some defaults and optional, tailored to the request, depth would be in there. This would mean Space.GetContentsAsync would get another overload with an additional parameter.

@Morhpeuss
Copy link
Author

@Lakritzator I understand that you can not support all properties.

Adding a new overload of the method with optional parameters makes sense.

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

No branches or pull requests

2 participants