Skip to content

Instantly share code, notes, and snippets.



Last active Jun 23, 2019
What would you like to do?
When condition example with param example
<?xml version="1.0" encoding="UTF-8" ?>
<Resource xmlns="" v="1.0">
<Request method="GET">
<Desc> Say hello to different species </Desc>
<Param name="type" type="text" minlength="1" />
<!-- http://localhost:7000/backend/v1.0/hello?type=animal -->
<Sql id="helloAnimals" when="$type eq animal"> SELECT 'Hello animals' as "message" </Sql>
<!-- http://localhost:7000/backend/v1.0/hello?type=plant -->
<Sql id="helloPlants" when="$type eq plant"> SELECT 'Hello plants' as "message" </Sql>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment