...
6. Now you need to set Service Application in web service for that controller collection. For this you add record of Controller Configuration Collections that you have created.
Now you can execute genrated URI on browser.
Sample Endpoint
For above example as we set cache policy as 'No-caching' There will be no-caching for endpoint.
Cached? | No |
Headers
For Above example we didnt select require authentication option on configuration section hence no need to pass header information
Sample Parameters
single parameter passed as 'param1' in above example.
Parameter | Query Param? | Description | Example |
---|---|---|---|
param1 | Yes | This parameter is send as response to user | test |
Sample URI for above example is
Code Block |
---|
https://<service base>/ParamDemo/test |
Sample Response Body
Here we are getting simple text response as we set in class library example.
Code Block | ||
---|---|---|
| ||
Parameter with value :test |
HTTP Status Codes
Status Code | Meaning |
---|---|
200 | OK; View data in response body |
404 | Unauthenticated |