Select to view content in your preferred language

Get a web application config via API (REST, Python)

507
3
08-23-2022 02:58 AM
pzhuchkov
Emerging Contributor

Is there any opportunity to get a web application config (config.json) via (REST, Python)? I'd like to get settings for Search widget to query features using an external API to check if a feature exists in ArcGIS services.

0 Kudos
3 Replies
berniejconnors
Frequent Contributor

Hello @pzhuchkov , If you are concerned that your search widget is not working properly I recommend you use your web browser's developer tools to inspect the request and response that your web application is sending.  I use Google Chrome.  Here is a good link on how to use the Chrome Dev tools to get the info you need - https://www.geeksforgeeks.org/how-to-use-chrome-developer-tools-for-api-testing/

 

Bernie.

0 Kudos
pzhuchkov
Emerging Contributor

@berniejconnors Hello. I don't have any problems with Search widget at all.

I have a strange task:

  1. There is an external API that should open a web application using URL parameter (Search widget). For example: 

    https://machine.domain.com/webadaptor/apps/webappviewer/index.html?id=565а7f179ab78c60b125cf4987c99cd8&find=g231

  2.  A system that will call this URL must check in advance that a feature exists by queries via REST.
  3.  I'd like to run a small API-service to answer if a feature exists or not. I want to use settings from Search widget (i.e. from application config) to build these queries.

Task: to get a web-application config by the id using an API

0 Kudos
pzhuchkov
Emerging Contributor
0 Kudos