ServiceStack Examples

<back to all web services

GetFactorial

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/syncreply/GetFactorial HTTP/1.1 
Host: ec2-54-224-75-101.compute-1.amazonaws.com 
Content-Type: application/json
Content-Length: length

{"ForNumber":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Result":0}