Custom REST endpoint examples
Was this page helpful?
Was this page helpful?
The Splunk Enterprise hello-world app for custom REST handlers contains example custom REST endpoints. Use these examples as a starting point for creating custom REST handlers.
The Splunk Enterprise hello-world app for custom REST handlers contains the following examples:
Script | Handler type |
---|---|
hello_templates.py | Extensible Administration Interface (EAI) |
hello_world.py | Script interface |
When you call the endpoints for these two handlers, they both return the following payload:
{"text":"Hello world!"}
To download and install these examples, see the Hello-world app for custom REST handlers in the splunk-app-examples repository on GitHub.