REST Resource Database Add
I want a new database record to be added to the space. I get
"Resource has been accepted" and a location. When I try to get the
location, it returns a grails run time error. When I use the rest
interface to see if the record was added, it does not
appear.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Chet Patel on 21 Dec, 2009 06:54 PM
Sounds like the dbConnection value points to a database driver bean definition. It should point to a bean with a SQL provider which also contains the 'select' statement to retrieve the database record. Try posting the resource with the dbConnection value set to the SQL provider bean name.
3 Posted by Kyle Nakamoto on 21 Dec, 2009 07:20 PM
This was correct. I was putting in the bean name for the database I wanted to use based upon the documentation stating it should be the database_bean. Like you said, it is looking for the bean name of the ingest query (SQLProvider). For clarity, the documentation should probably be changed to reflect this.
Support Staff 4 Posted by Chet Patel on 05 Jan, 2010 04:09 PM
I have changed the documentation on posting resources to reflect this.
Chet Patel closed this discussion on 05 Jan, 2010 04:09 PM.