Splunk Dev

AppInspect - check_web_conf_expose_patterns_have_restmap_matches for EAI (Extensible Administration Interface)

anonymousStuden
Engager

My endpoint works perfectly fine and returned responses that I expect. However, when I ran my app through app inspect, I received the following:

FAILURE: web.conf found with a `pattern` exposed that does not
correspond to any `match` stanza in restmap.conf. Apps should only
expose endpoints that they define. Pattern: `/apiDomain/`. Please
remove or edit this stanza: [expose:apiDomain]. File:
default/web.conf Line Number: 3


My restmap.conf is as follows:

[admin:apiDomain]
match = /apiDomain
members = APIDomainHandler

[admin_external:APIDomainHandler]
handlertype = python
python.version = python3
handlerfile = APIDomainHandler.py
handleractions = list
handlerpersistentmode = true

And my web.conf is as follows:

[expose:apiDomain]
methods = GET
pattern = apiDomain

[expose:apiDomain_elements]
methods = GET
pattern = /apiDomain/*


default/web.conf Line Number: 3 is the pattern = apiDomain

I'm not sure what I'm missing here 
Labels (2)
0 Karma
1 Solution

anonymousStuden
Engager

Turns out I just needed to change my pattern from apiDomain to apiDomain/**, and the apiDomain_elements stanza is not needed.

View solution in original post

0 Karma

anonymousStuden
Engager

Turns out I just needed to change my pattern from apiDomain to apiDomain/**, and the apiDomain_elements stanza is not needed.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...