Skip to content

Instantly share code, notes, and snippets.

@d3ep4k
Last active June 23, 2019 07:36
Show Gist options
  • Save d3ep4k/8323ffefa00540eae44f19edcc692a55 to your computer and use it in GitHub Desktop.
Save d3ep4k/8323ffefa00540eae44f19edcc692a55 to your computer and use it in GitHub Desktop.
When condition example with param example
<?xml version="1.0" encoding="UTF-8" ?>
<Resource xmlns="http://xml.metamug.net/resource/1.0" 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>
</Request>
</Resource>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment