Last active
June 23, 2019 07:36
-
-
Save d3ep4k/8323ffefa00540eae44f19edcc692a55 to your computer and use it in GitHub Desktop.
When condition example with param example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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