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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...