NancyFX RESTful API

The context request stuff

Request method: GET
Request path: /
Request url: http://restapi.triality.com.au:80
Request query: Nancy.DynamicDictionary
Request headers: Nancy.RequestHeaders
Request body: Nancy.IO.RequestStream
Request userhostaddress: 3.209.80.87
Request cookies: System.Collections.Generic.Dictionary`2[System.String,System.String]
Request session: Nancy.Session.NullSessionProvider
Request files: System.Collections.Generic.List`1[Nancy.HttpFile]
Request form: Nancy.DynamicDictionary

The context response stuff

Response contenttype: text/html
Response statuscode: OK
Response cookies: System.Collections.Generic.List`1[Nancy.Cookies.INancyCookie]
Response headers: System.Collections.Generic.Dictionary`2[System.String,System.String]
Response contents: System.Action`1[System.IO.Stream]

The model stuff

The tag "[ERR!]" simply indicates that the defined view is being asked to display an element that
does not exist in the provided model data. For the most part in these examples it can be ignored.

Viewing output from model with name: "[ERR!]"

REST test: hello world (high scoring literal segments) > http://restapi.triality.com.au/test/hello/world

REST test: hello someone (lower scoring literal and capture segments) > http://restapi.triality.com.au/test/hello/{yournamehere}

REST test: hello (capture segments to matching class) > http://restapi.triality.com.au/test/hello/{id}/{firstName}/{lastName}

REST test: return dummies list (class based list example & negotiates output using json or xml) > http://restapi.triality.com.au/test/dummies/all/classlist

REST test: return dummies model (class based model example & negotiates response inc json) > http://restapi.triality.com.au/test/dummies/all/classmodel

..or take a look at NancyFX on github, defining routes and other documentation

..or jump on over to our triality gateway at http://central.triality.com.au