Join the upcoming Developer Hackathon: Splunk Build-a-thon!Register now

 Custom REST endpoint examples

    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:

    ScriptHandler type
    hello_templates.pyExtensible Administration Interface (EAI)
    hello_world.pyScript 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.