Skip to content

feat(arcgis-rest-portal): add getFolderContent() to fetch user folder contents #1207

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

Closed
wants to merge 2 commits into from

Conversation

arcenter
Copy link
Contributor

Resolves #769.

This PR adds the getFolderContent() function, allowing users to fetch content within a particular folder via a GET request to the ArcGIS REST API. This function also follows the standard paging patterns used across the API, such as num and start, allowing for consistent pagination of folder contents.

Changes

  • Implements getFolderContent() in get.ts.
  • Adds unit tests in get.test.ts to verify correct API calls and responses.
  • Contains documentation with usage examples.

Testing

  • Ran npm test to confirm all tests pass.

Note: Open to feedback, especially on implementation details.

@gavinr-maps
Copy link
Contributor

@arcenter Thanks much for this PR. Once I started reviewing it, I realized that we already covered this endpoint in getUserContent(): #769 (comment). Sorry for not realizing that sooner. We appreciate the effort on this PR!!

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.

Add getFolderContent to Portal
2 participants