Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
API Routes in Routes.config
<routes>
<route name="product-get" template="products/{productId}" controller="Products"
action="GetProduct" method="GET" logging="false" />
<route name="product-list" template="products" controller="Products"
action="GetProducts" method="GET" logging="false" />
<route name="product-create" template="products" controller="Products"
action="PostProduct" method="POST" logging="true" />
<route name="product-update" template="products/{productId}" controller="Products"
action="PutProduct" method="PUT" logging="true" />
<route name="product-delete" template="products/{productId}" controller="Products"
action="DeleteProduct" method="DELETE" logging="true" />
</routes>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment