On Wed, 14 Aug 2013 21:13:42 GMT, Craig Dillabaugh wrote:

I am brand new to D, and am trying out the REST API demo provided at:

https://github.com/rejectedsoftware/vibe.d/blob/master/examples/rest/source/app.d

The application compiles and runs, but when I attempt to execute a query against the API (as follows)

curl -X GET http://localhost:8080/some_info/

I get the following error:

(...)

The Example1API class uses the new @rootPathFromName attribute, which adds a prefix for the API based on its name. In this case that would be "/example1api/" and the complete URL should be (untested) "http://localhost:8080/example1api/some_info/".

You can also run the application with --vv (i.e. "dub -- -vv") to get a list of all registered routes printed - plus a lot of other, less useful, stuff.