Using URL path parameters in Splunk REST endpoints

If you wonder how to pass an URL path parameter to your custom REST endpoint in Splunk, please have a look:

December 21, 2021 · 1 min · admin

POST request from a Splunk app using the @splunk/splunk-utils package

This snippet shows how to use the handleError and handleResponse functions from the splunk-utils package to send a POST request from a Splunk app:

November 8, 2021 · 1 min · admin

Using real POJOs (without JAXB Annotations) as transfer objects with JAX-RS

Are you annoyed that you have to annotate your POJOs with @XmlRootElement, so they can be used with JAX-RS? If your using Jersey as JAX-RS implementation your lucky: Just add to the <servlet> tag in your web.xml the following snippet: <init-param> <param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name> <param-value>true</param-value> </init-param> After restarting your servlet, your POJOs are marshalled to JSON as a charme. Enjoy!

December 1, 2011 · 1 min · admin

Openbahn-API – Bahn-Webseite als Webservice

As this is only of interest for German users - this article is in German only. It’s about a new project of mine. Sorry folks. Ich bin gerade dabei eine Android-App zu entwickeln, mit der es möglich ist Fahrkarten für Bahn-Pendler einfacher zu buchen. Bei der Entwicklung ist mir aufgefallen, dass die Bahn leider keine Webservices nach außen zur Verfügung stellt – die Webseite www.bahn.de ist zusammen mit der mobilen Variante m....

June 22, 2011 · 2 min · admin