This project is read-only.

1.8 web api

Topics: Troubleshooting, Writing modules
Apr 10, 2014 at 4:53 AM
Edited Apr 10, 2014 at 7:44 PM
Ok, so this is sort of trouble shooting and sanity checking. I am not sure where else to take it so here it goes.

step 1: download latest code
step 2: unpack and load into visual studio 2013
step 3: make sure it all builds and run the site
step 4: turn on code gen
step 5: make a new module
step 6: add web api 2 controller with read / write actions
step 7: run and test web api by navigating to http://localhost:30321/OrchardLocal/api/modulename/controllername

the following steps fail to work for me. Maybe I am missing something important here but all i get are 404's.

I would be grateful to know someone can do this experiment and it works.

Thanks in advance
Apr 10, 2014 at 7:56 PM
added this to issue tracking
Apr 10, 2014 at 9:45 PM
I just tested using our ConnectorListener, which is traking POST like this http://localhost:30321/api/datwendo.connectorlistener/cclistener/166 and it is working, you must have something bad in your controller.