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

sources endpoint for hosted views is not exposed #1806

Open
philnagel opened this issue Apr 19, 2024 · 0 comments
Open

sources endpoint for hosted views is not exposed #1806

philnagel opened this issue Apr 19, 2024 · 0 comments

Comments

@philnagel
Copy link

Is your feature request related to a problem? Please describe.
The sources endpoint for hosted feature layer views is not exposed in this package. It would be good to have a way to find the source service of a hosted view.

Describe the solution you'd like
For example:

item = gis.contentget(itemid)
if item.isView:
  sources = item.sources()
{'currentVersion': 11.2,
 'services': [{'name': 'survey123',
   'type': 'FeatureServer',
   'url': 'https://services.arcgis.com/orgid/ArcGIS/rest/services/survey123/FeatureServer',
   'serviceItemId': 'sourceItemID'}]}

Describe alternatives you've considered
Currently I have to manually retrieve the token and make a request via requests.get to get this information.

Additional context
I am not seeing this endpoint documented in the REST docs, but it is exposed in the UI when accessing a REST endpoint of a hosted view.
Screenshot 2024-04-19 at 12 14 20 PM

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